سطر 5: |
سطر 5: |
| | | |
| === <var>package-info</var> === | | === <var>package-info</var> === |
− | ; <var>name</var> <nowiki>:</nowiki> string | + | ; <var>name_latin</var> <nowiki>:</nowiki> string |
| : the name of the medicine in Latin script | | : the name of the medicine in Latin script |
| ; <var>name_arabic</var> <nowiki>:</nowiki> string | | ; <var>name_arabic</var> <nowiki>:</nowiki> string |
| : the name of the medicine in Arabic script, if available (optional) | | : the name of the medicine in Arabic script, if available (optional) |
− | ; <var>expiry</var> <nowiki>:</nowiki> date | + | ; <var>expiry_date</var> <nowiki>:</nowiki> date |
| : the date of expiry of the medicine. The significance is in the precision of months, i.e YYYY/MM | | : the date of expiry of the medicine. The significance is in the precision of months, i.e YYYY/MM |
− | ; <var>package-state</var> <nowiki>:</nowiki> string(<kbd>fabrica</kbd> | <kbd>opened</kbd> | <kbd>partial</kbd>) : The case of the packaging of the medicine. | + | ; <var>package_state</var> <nowiki>:</nowiki> string(<kbd>fabrica</kbd> | <kbd>opened</kbd> | <kbd>partial</kbd>) : The case of the packaging of the medicine. |
| ; <var>governrate</var> <nowiki>:</nowiki> string(predefined) | | ; <var>governrate</var> <nowiki>:</nowiki> string(predefined) |
| : the governerate where the package is to be picked up | | : the governerate where the package is to be picked up |
سطر 21: |
سطر 21: |
| | | |
| === <var>contact-info</var> === | | === <var>contact-info</var> === |
− | ; <var>email-address</var> <nowiki>:</nowiki> [[#string(email-address)|string(email-address)]] | + | ; <var>email_address</var> <nowiki>:</nowiki> [[#string(email_address)|string(email_address)]] |
| : email address identifies a user who enlists an item. It is used to communicate with the user to confirm his listing, and to confirm the removal of a listing. It's a user's means to control his listings. It could be made invisible to viewers of a listing unless no phone number is given, in which case it is the only means to contact the user by those interested in a listing. | | : email address identifies a user who enlists an item. It is used to communicate with the user to confirm his listing, and to confirm the removal of a listing. It's a user's means to control his listings. It could be made invisible to viewers of a listing unless no phone number is given, in which case it is the only means to contact the user by those interested in a listing. |
| ; <var>nickname</var> <nowiki>:</nowiki> string | | ; <var>nickname</var> <nowiki>:</nowiki> string |
| : A friendly name to greet the user by those contacting regarding a listing. | | : A friendly name to greet the user by those contacting regarding a listing. |
− | ; <var>phone-number</var> <nowiki>:</nowiki> [[#string(phone-number)|string(phone-number)]] | + | ; <var>phone_number</var> <nowiki>:</nowiki> [[#string(phone_number)|string(phone_number)]] |
| : An optional method to contact a user by those interested in a listing. If entered then it is visible. | | : An optional method to contact a user by those interested in a listing. If entered then it is visible. |
| ; <var>email_address_visible</var> <nowiki>:</nowiki> boolean | | ; <var>email_address_visible</var> <nowiki>:</nowiki> boolean |
سطر 35: |
سطر 35: |
| == Listings == | | == Listings == |
| ; id | | ; id |
− | : <code>base62(sha256(<var>email-address</var> . sha256(<var>name</var> . <var>expiry</var> . <var>submission-date</var>)))</code> | + | : <code>base62(sha256(<var>email_address</var> . sha256(<var>name</var> . <var>expiry</var> . <var>submission_date</var>)))</code> |
| : entry's unique identifier | | : entry's unique identifier |
| ; [[#package-info|package-info]] | | ; [[#package-info|package-info]] |
| ; [[#contact-info|contact-info]] | | ; [[#contact-info|contact-info]] |
− | ; submission-date : timestamp | + | ; submission_date : timestamp |
− | ; instatement-date : timestamp | + | ; instatement_date : timestamp |
| | | |
| == Archive == | | == Archive == |
سطر 48: |
سطر 48: |
| : except: | | : except: |
| :: <var>nickname</var> is omitted | | :: <var>nickname</var> is omitted |
− | :: <var>email-address</var> is replaced with <code>base62(sha256(<var>email-address</var>))</code> | + | :: <var>email_address</var> is replaced with <code>base62(sha256(<var>email-address</var>))</code> |
− | :: <var>phone-number</var> is replaces with <code>base62(sha256(<var>phone-number</var>))</code> | + | :: <var>phone_number</var> is replaces with <code>base62(sha256(<var>phone-number</var>))</code> |
− | ; submission-date | + | ; submission_date |
− | ; instatement-date | + | ; instatement_date |
− | ; removal-date | + | ; removal_date |
− | ; <var>removal-reason</var> : possible values: | + | ; <var>removal_reason</var> : possible values: |
| :; <kbd>unconfirmed</kbd> : | | :; <kbd>unconfirmed</kbd> : |
| :; <kbd>removed-by-user</kbd> : | | :; <kbd>removed-by-user</kbd> : |
سطر 59: |
سطر 59: |
| | | |
| == Data types == | | == Data types == |
− | ; string(email-address) | + | ; string(email_address) |
| : an addr-spec a la [[rfc:5322]] | | : an addr-spec a la [[rfc:5322]] |
− | ; string(phone-number) | + | ; string(phone_number) |
| : phone number a la [[rfc:3966]] | | : phone number a la [[rfc:3966]] |
| </div> | | </div> |