@revenexx/node 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/client.d.mts +25 -0
- package/dist/client.d.ts +25 -0
- package/dist/client.js +39 -18
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +35 -14
- package/dist/client.mjs.map +1 -1
- package/dist/enums/approval-rule-approver-type.d.mts +7 -0
- package/dist/enums/approval-rule-approver-type.d.ts +7 -0
- package/dist/enums/approval-rule-approver-type.js +12 -0
- package/dist/enums/approval-rule-approver-type.js.map +1 -0
- package/dist/enums/approval-rule-approver-type.mjs +11 -0
- package/dist/enums/approval-rule-approver-type.mjs.map +1 -0
- package/dist/enums/approval-rule-condition.d.mts +10 -0
- package/dist/enums/approval-rule-condition.d.ts +10 -0
- package/dist/enums/approval-rule-condition.js +15 -0
- package/dist/enums/approval-rule-condition.js.map +1 -0
- package/dist/enums/approval-rule-condition.mjs +14 -0
- package/dist/enums/approval-rule-condition.mjs.map +1 -0
- package/dist/enums/approval-rule-create-request-approver-type.d.mts +7 -0
- package/dist/enums/approval-rule-create-request-approver-type.d.ts +7 -0
- package/dist/enums/approval-rule-create-request-approver-type.js +12 -0
- package/dist/enums/approval-rule-create-request-approver-type.js.map +1 -0
- package/dist/enums/approval-rule-create-request-approver-type.mjs +11 -0
- package/dist/enums/approval-rule-create-request-approver-type.mjs.map +1 -0
- package/dist/enums/approval-rule-create-request-condition.d.mts +10 -0
- package/dist/enums/approval-rule-create-request-condition.d.ts +10 -0
- package/dist/enums/approval-rule-create-request-condition.js +15 -0
- package/dist/enums/approval-rule-create-request-condition.js.map +1 -0
- package/dist/enums/approval-rule-create-request-condition.mjs +14 -0
- package/dist/enums/approval-rule-create-request-condition.mjs.map +1 -0
- package/dist/enums/approval-rule-create-request-effect.d.mts +7 -0
- package/dist/enums/approval-rule-create-request-effect.d.ts +7 -0
- package/dist/enums/approval-rule-create-request-effect.js +12 -0
- package/dist/enums/approval-rule-create-request-effect.js.map +1 -0
- package/dist/enums/approval-rule-create-request-effect.mjs +11 -0
- package/dist/enums/approval-rule-create-request-effect.mjs.map +1 -0
- package/dist/enums/approval-rule-effect.d.mts +7 -0
- package/dist/enums/approval-rule-effect.d.ts +7 -0
- package/dist/enums/approval-rule-effect.js +12 -0
- package/dist/enums/approval-rule-effect.js.map +1 -0
- package/dist/enums/approval-rule-effect.mjs +11 -0
- package/dist/enums/approval-rule-effect.mjs.map +1 -0
- package/dist/enums/approval-rule-update-request-approver-type.d.mts +7 -0
- package/dist/enums/approval-rule-update-request-approver-type.d.ts +7 -0
- package/dist/enums/approval-rule-update-request-approver-type.js +12 -0
- package/dist/enums/approval-rule-update-request-approver-type.js.map +1 -0
- package/dist/enums/approval-rule-update-request-approver-type.mjs +11 -0
- package/dist/enums/approval-rule-update-request-approver-type.mjs.map +1 -0
- package/dist/enums/approval-rule-update-request-condition.d.mts +10 -0
- package/dist/enums/approval-rule-update-request-condition.d.ts +10 -0
- package/dist/enums/approval-rule-update-request-condition.js +15 -0
- package/dist/enums/approval-rule-update-request-condition.js.map +1 -0
- package/dist/enums/approval-rule-update-request-condition.mjs +14 -0
- package/dist/enums/approval-rule-update-request-condition.mjs.map +1 -0
- package/dist/enums/approval-rule-update-request-effect.d.mts +7 -0
- package/dist/enums/approval-rule-update-request-effect.d.ts +7 -0
- package/dist/enums/approval-rule-update-request-effect.js +12 -0
- package/dist/enums/approval-rule-update-request-effect.js.map +1 -0
- package/dist/enums/approval-rule-update-request-effect.mjs +11 -0
- package/dist/enums/approval-rule-update-request-effect.mjs.map +1 -0
- package/dist/enums/approver-type.d.mts +7 -0
- package/dist/enums/approver-type.d.ts +7 -0
- package/dist/enums/approver-type.js +12 -0
- package/dist/enums/approver-type.js.map +1 -0
- package/dist/enums/approver-type.mjs +11 -0
- package/dist/enums/approver-type.mjs.map +1 -0
- package/dist/enums/condition.d.mts +10 -0
- package/dist/enums/condition.d.ts +10 -0
- package/dist/enums/condition.js +15 -0
- package/dist/enums/condition.js.map +1 -0
- package/dist/enums/condition.mjs +14 -0
- package/dist/enums/condition.mjs.map +1 -0
- package/dist/enums/effect.d.mts +7 -0
- package/dist/enums/effect.d.ts +7 -0
- package/dist/enums/effect.js +12 -0
- package/dist/enums/effect.js.map +1 -0
- package/dist/enums/effect.mjs +11 -0
- package/dist/enums/effect.mjs.map +1 -0
- package/dist/enums/pending-approval-approver-type.d.mts +7 -0
- package/dist/enums/pending-approval-approver-type.d.ts +7 -0
- package/dist/enums/pending-approval-approver-type.js +12 -0
- package/dist/enums/pending-approval-approver-type.js.map +1 -0
- package/dist/enums/pending-approval-approver-type.mjs +11 -0
- package/dist/enums/pending-approval-approver-type.mjs.map +1 -0
- package/dist/enums/pending-approval-status.d.mts +7 -0
- package/dist/enums/pending-approval-status.d.ts +7 -0
- package/dist/enums/pending-approval-status.js +12 -0
- package/dist/enums/pending-approval-status.js.map +1 -0
- package/dist/enums/pending-approval-status.mjs +11 -0
- package/dist/enums/pending-approval-status.mjs.map +1 -0
- package/dist/enums/procurement-purchase-request-items-create-type.d.mts +7 -0
- package/dist/enums/procurement-purchase-request-items-create-type.d.ts +7 -0
- package/dist/enums/procurement-purchase-request-items-create-type.js +12 -0
- package/dist/enums/procurement-purchase-request-items-create-type.js.map +1 -0
- package/dist/enums/procurement-purchase-request-items-create-type.mjs +11 -0
- package/dist/enums/procurement-purchase-request-items-create-type.mjs.map +1 -0
- package/dist/enums/purchase-request-event-name.d.mts +12 -0
- package/dist/enums/purchase-request-event-name.d.ts +12 -0
- package/dist/enums/purchase-request-event-name.js +17 -0
- package/dist/enums/purchase-request-event-name.js.map +1 -0
- package/dist/enums/purchase-request-event-name.mjs +16 -0
- package/dist/enums/purchase-request-event-name.mjs.map +1 -0
- package/dist/enums/purchase-request-item-create-request-type.d.mts +7 -0
- package/dist/enums/purchase-request-item-create-request-type.d.ts +7 -0
- package/dist/enums/purchase-request-item-create-request-type.js +12 -0
- package/dist/enums/purchase-request-item-create-request-type.js.map +1 -0
- package/dist/enums/purchase-request-item-create-request-type.mjs +11 -0
- package/dist/enums/purchase-request-item-create-request-type.mjs.map +1 -0
- package/dist/enums/purchase-request-item-type.d.mts +7 -0
- package/dist/enums/purchase-request-item-type.d.ts +7 -0
- package/dist/enums/purchase-request-item-type.js +12 -0
- package/dist/enums/purchase-request-item-type.js.map +1 -0
- package/dist/enums/purchase-request-item-type.mjs +11 -0
- package/dist/enums/purchase-request-item-type.mjs.map +1 -0
- package/dist/enums/purchase-request-item-update-request-type.d.mts +7 -0
- package/dist/enums/purchase-request-item-update-request-type.d.ts +7 -0
- package/dist/enums/purchase-request-item-update-request-type.js +12 -0
- package/dist/enums/purchase-request-item-update-request-type.js.map +1 -0
- package/dist/enums/purchase-request-item-update-request-type.mjs +11 -0
- package/dist/enums/purchase-request-item-update-request-type.mjs.map +1 -0
- package/dist/enums/purchase-request-status.d.mts +9 -0
- package/dist/enums/purchase-request-status.d.ts +9 -0
- package/dist/enums/purchase-request-status.js +14 -0
- package/dist/enums/purchase-request-status.js.map +1 -0
- package/dist/enums/purchase-request-status.mjs +13 -0
- package/dist/enums/purchase-request-status.mjs.map +1 -0
- package/dist/enums/submit-item-type.d.mts +7 -0
- package/dist/enums/submit-item-type.d.ts +7 -0
- package/dist/enums/submit-item-type.js +12 -0
- package/dist/enums/submit-item-type.js.map +1 -0
- package/dist/enums/submit-item-type.mjs +11 -0
- package/dist/enums/submit-item-type.mjs.map +1 -0
- package/dist/enums/submit-result-outcome.d.mts +9 -0
- package/dist/enums/submit-result-outcome.d.ts +9 -0
- package/dist/enums/submit-result-outcome.js +14 -0
- package/dist/enums/submit-result-outcome.js.map +1 -0
- package/dist/enums/submit-result-outcome.mjs +13 -0
- package/dist/enums/submit-result-outcome.mjs.map +1 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/dist/inputFile.js +1 -2
- package/dist/inputFile.js.map +1 -1
- package/dist/inputFile.mjs +0 -1
- package/dist/inputFile.mjs.map +1 -1
- package/dist/models.d.mts +1027 -36
- package/dist/models.d.ts +1027 -36
- package/dist/operator.js +243 -204
- package/dist/operator.js.map +1 -1
- package/dist/operator.mjs +242 -203
- package/dist/operator.mjs.map +1 -1
- package/dist/permission.js +58 -48
- package/dist/permission.js.map +1 -1
- package/dist/permission.mjs +58 -48
- package/dist/permission.mjs.map +1 -1
- package/dist/query.js +525 -422
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +524 -421
- package/dist/query.mjs.map +1 -1
- package/dist/services/apps.d.mts +18 -0
- package/dist/services/apps.d.ts +18 -0
- package/dist/services/avatars.d.mts +18 -0
- package/dist/services/avatars.d.ts +18 -0
- package/dist/services/carts-io.d.mts +46 -28
- package/dist/services/carts-io.d.ts +46 -28
- package/dist/services/carts-io.js.map +1 -1
- package/dist/services/carts-io.mjs.map +1 -1
- package/dist/services/carts-items.d.mts +42 -24
- package/dist/services/carts-items.d.ts +42 -24
- package/dist/services/carts-items.js.map +1 -1
- package/dist/services/carts-items.mjs.map +1 -1
- package/dist/services/carts.d.mts +70 -52
- package/dist/services/carts.d.ts +70 -52
- package/dist/services/carts.js.map +1 -1
- package/dist/services/carts.mjs.map +1 -1
- package/dist/services/channels.d.mts +64 -46
- package/dist/services/channels.d.ts +64 -46
- package/dist/services/channels.js +1 -1
- package/dist/services/channels.js.map +1 -1
- package/dist/services/channels.mjs +1 -1
- package/dist/services/channels.mjs.map +1 -1
- package/dist/services/cost-centers.d.mts +18 -0
- package/dist/services/cost-centers.d.ts +18 -0
- package/dist/services/customers-contacts.d.mts +62 -44
- package/dist/services/customers-contacts.d.ts +62 -44
- package/dist/services/customers-contacts.js.map +1 -1
- package/dist/services/customers-contacts.mjs.map +1 -1
- package/dist/services/customers-organizations.d.mts +58 -40
- package/dist/services/customers-organizations.d.ts +58 -40
- package/dist/services/customers-organizations.js.map +1 -1
- package/dist/services/customers-organizations.mjs.map +1 -1
- package/dist/services/customers-roles.d.mts +26 -8
- package/dist/services/customers-roles.d.ts +26 -8
- package/dist/services/customers-roles.js.map +1 -1
- package/dist/services/customers-roles.mjs.map +1 -1
- package/dist/services/customers-segments.d.mts +62 -44
- package/dist/services/customers-segments.d.ts +62 -44
- package/dist/services/customers-segments.js.map +1 -1
- package/dist/services/customers-segments.mjs.map +1 -1
- package/dist/services/customers-value-lists.d.mts +90 -72
- package/dist/services/customers-value-lists.d.ts +90 -72
- package/dist/services/customers-value-lists.js.map +1 -1
- package/dist/services/customers-value-lists.mjs.map +1 -1
- package/dist/services/customers.d.mts +78 -60
- package/dist/services/customers.d.ts +78 -60
- package/dist/services/customers.js.map +1 -1
- package/dist/services/customers.mjs.map +1 -1
- package/dist/services/events.d.mts +18 -0
- package/dist/services/events.d.ts +18 -0
- package/dist/services/forms.d.mts +66 -48
- package/dist/services/forms.d.ts +66 -48
- package/dist/services/forms.js.map +1 -1
- package/dist/services/forms.mjs.map +1 -1
- package/dist/services/health.d.mts +18 -0
- package/dist/services/health.d.ts +18 -0
- package/dist/services/inventories-locations.d.mts +38 -20
- package/dist/services/inventories-locations.d.ts +38 -20
- package/dist/services/inventories-locations.js.map +1 -1
- package/dist/services/inventories-locations.mjs.map +1 -1
- package/dist/services/inventories-reservations.d.mts +38 -20
- package/dist/services/inventories-reservations.d.ts +38 -20
- package/dist/services/inventories-reservations.js.map +1 -1
- package/dist/services/inventories-reservations.mjs.map +1 -1
- package/dist/services/inventories-stock.d.mts +70 -52
- package/dist/services/inventories-stock.d.ts +70 -52
- package/dist/services/inventories-stock.js.map +1 -1
- package/dist/services/inventories-stock.mjs.map +1 -1
- package/dist/services/io.d.mts +66 -48
- package/dist/services/io.d.ts +66 -48
- package/dist/services/io.js +2 -2
- package/dist/services/io.js.map +1 -1
- package/dist/services/io.mjs +2 -2
- package/dist/services/io.mjs.map +1 -1
- package/dist/services/locale.d.mts +18 -0
- package/dist/services/locale.d.ts +18 -0
- package/dist/services/markets.d.mts +122 -104
- package/dist/services/markets.d.ts +122 -104
- package/dist/services/markets.js.map +1 -1
- package/dist/services/markets.mjs.map +1 -1
- package/dist/services/messaging.d.mts +194 -176
- package/dist/services/messaging.d.ts +194 -176
- package/dist/services/messaging.js +3 -3
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +3 -3
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/orderlists.d.mts +96 -78
- package/dist/services/orderlists.d.ts +96 -78
- package/dist/services/orderlists.js +1 -1
- package/dist/services/orderlists.js.map +1 -1
- package/dist/services/orderlists.mjs +1 -1
- package/dist/services/orderlists.mjs.map +1 -1
- package/dist/services/orders.d.mts +114 -96
- package/dist/services/orders.d.ts +114 -96
- package/dist/services/orders.js.map +1 -1
- package/dist/services/orders.mjs.map +1 -1
- package/dist/services/pages-collaboration.d.mts +34 -16
- package/dist/services/pages-collaboration.d.ts +34 -16
- package/dist/services/pages-collaboration.js.map +1 -1
- package/dist/services/pages-collaboration.mjs.map +1 -1
- package/dist/services/pages-delivery.d.mts +26 -8
- package/dist/services/pages-delivery.d.ts +26 -8
- package/dist/services/pages-delivery.js.map +1 -1
- package/dist/services/pages-delivery.mjs.map +1 -1
- package/dist/services/pages-editor.d.mts +34 -16
- package/dist/services/pages-editor.d.ts +34 -16
- package/dist/services/pages-editor.js.map +1 -1
- package/dist/services/pages-editor.mjs.map +1 -1
- package/dist/services/pages.d.mts +82 -64
- package/dist/services/pages.d.ts +82 -64
- package/dist/services/pages.js.map +1 -1
- package/dist/services/pages.mjs.map +1 -1
- package/dist/services/payments-ledger.d.mts +54 -36
- package/dist/services/payments-ledger.d.ts +54 -36
- package/dist/services/payments-ledger.js.map +1 -1
- package/dist/services/payments-ledger.mjs.map +1 -1
- package/dist/services/payments-methods.d.mts +34 -16
- package/dist/services/payments-methods.d.ts +34 -16
- package/dist/services/payments-methods.js.map +1 -1
- package/dist/services/payments-methods.mjs.map +1 -1
- package/dist/services/payments-providers.d.mts +38 -20
- package/dist/services/payments-providers.d.ts +38 -20
- package/dist/services/payments-providers.js.map +1 -1
- package/dist/services/payments-providers.mjs.map +1 -1
- package/dist/services/prices.d.mts +86 -68
- package/dist/services/prices.d.ts +86 -68
- package/dist/services/prices.js.map +1 -1
- package/dist/services/prices.mjs.map +1 -1
- package/dist/services/procurement.d.mts +991 -0
- package/dist/services/procurement.d.ts +991 -0
- package/dist/services/procurement.js +1185 -0
- package/dist/services/procurement.js.map +1 -0
- package/dist/services/procurement.mjs +1184 -0
- package/dist/services/procurement.mjs.map +1 -0
- package/dist/services/products-assets.d.mts +34 -16
- package/dist/services/products-assets.d.ts +34 -16
- package/dist/services/products-assets.js.map +1 -1
- package/dist/services/products-assets.mjs.map +1 -1
- package/dist/services/products-categories.d.mts +66 -48
- package/dist/services/products-categories.d.ts +66 -48
- package/dist/services/products-categories.js.map +1 -1
- package/dist/services/products-categories.mjs.map +1 -1
- package/dist/services/products-data-model.d.mts +166 -148
- package/dist/services/products-data-model.d.ts +166 -148
- package/dist/services/products-data-model.js.map +1 -1
- package/dist/services/products-data-model.mjs.map +1 -1
- package/dist/services/products-references.d.mts +50 -32
- package/dist/services/products-references.d.ts +50 -32
- package/dist/services/products-references.js.map +1 -1
- package/dist/services/products-references.mjs.map +1 -1
- package/dist/services/products.d.mts +70 -52
- package/dist/services/products.d.ts +70 -52
- package/dist/services/products.js.map +1 -1
- package/dist/services/products.mjs.map +1 -1
- package/dist/services/search.d.mts +40 -22
- package/dist/services/search.d.ts +40 -22
- package/dist/services/search.js +1 -1
- package/dist/services/search.js.map +1 -1
- package/dist/services/search.mjs +1 -1
- package/dist/services/search.mjs.map +1 -1
- package/dist/services/settings.d.mts +18 -0
- package/dist/services/settings.d.ts +18 -0
- package/dist/services/shipping-carriers.d.mts +42 -24
- package/dist/services/shipping-carriers.d.ts +42 -24
- package/dist/services/shipping-carriers.js.map +1 -1
- package/dist/services/shipping-carriers.mjs.map +1 -1
- package/dist/services/shipping-methods.d.mts +70 -52
- package/dist/services/shipping-methods.d.ts +70 -52
- package/dist/services/shipping-methods.js.map +1 -1
- package/dist/services/shipping-methods.mjs.map +1 -1
- package/dist/services/shipping-value-lists.d.mts +62 -44
- package/dist/services/shipping-value-lists.d.ts +62 -44
- package/dist/services/shipping-value-lists.js.map +1 -1
- package/dist/services/shipping-value-lists.mjs.map +1 -1
- package/dist/services/sites.d.mts +18 -0
- package/dist/services/sites.d.ts +18 -0
- package/dist/services/storage.d.mts +18 -0
- package/dist/services/storage.d.ts +18 -0
- package/package.json +6 -3
|
@@ -3,6 +3,15 @@ import '../models.js';
|
|
|
3
3
|
import '../enums/address-type-row-tone.js';
|
|
4
4
|
import '../enums/address-type-row-create-request-tone.js';
|
|
5
5
|
import '../enums/address-type-row-update-request-tone.js';
|
|
6
|
+
import '../enums/approval-rule-approver-type.js';
|
|
7
|
+
import '../enums/approval-rule-condition.js';
|
|
8
|
+
import '../enums/approval-rule-effect.js';
|
|
9
|
+
import '../enums/approval-rule-create-request-approver-type.js';
|
|
10
|
+
import '../enums/approval-rule-create-request-condition.js';
|
|
11
|
+
import '../enums/approval-rule-create-request-effect.js';
|
|
12
|
+
import '../enums/approval-rule-update-request-approver-type.js';
|
|
13
|
+
import '../enums/approval-rule-update-request-condition.js';
|
|
14
|
+
import '../enums/approval-rule-update-request-effect.js';
|
|
6
15
|
import '../enums/assets-source.js';
|
|
7
16
|
import '../enums/attribute-value-bucket.js';
|
|
8
17
|
import '../enums/auth-mail-source.js';
|
|
@@ -116,6 +125,8 @@ import '../enums/payment-term-tone.js';
|
|
|
116
125
|
import '../enums/payment-term-create-request-tone.js';
|
|
117
126
|
import '../enums/payment-term-update-request-tone.js';
|
|
118
127
|
import '../enums/payment-vocabulary-tone.js';
|
|
128
|
+
import '../enums/pending-approval-approver-type.js';
|
|
129
|
+
import '../enums/pending-approval-status.js';
|
|
119
130
|
import '../enums/price-ending-rule.js';
|
|
120
131
|
import '../enums/price-entries-adjust-response-rounding.js';
|
|
121
132
|
import '../enums/price-entries-adjust-response-rounding-mode.js';
|
|
@@ -138,6 +149,11 @@ import '../enums/product-grid-column-source.js';
|
|
|
138
149
|
import '../enums/product-label-source.js';
|
|
139
150
|
import '../enums/product-label-attribute-source.js';
|
|
140
151
|
import '../enums/products-kind.js';
|
|
152
|
+
import '../enums/purchase-request-status.js';
|
|
153
|
+
import '../enums/purchase-request-event-name.js';
|
|
154
|
+
import '../enums/purchase-request-item-type.js';
|
|
155
|
+
import '../enums/purchase-request-item-create-request-type.js';
|
|
156
|
+
import '../enums/purchase-request-item-update-request-type.js';
|
|
141
157
|
import '../enums/reorder-point-source.js';
|
|
142
158
|
import '../enums/reservation-status.js';
|
|
143
159
|
import '../enums/price-on-request-reason.js';
|
|
@@ -175,6 +191,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
|
|
|
175
191
|
import '../enums/shipping-weight-unit-update-request-tone.js';
|
|
176
192
|
import '../enums/stock-movement-type.js';
|
|
177
193
|
import '../enums/store-asset-request-visibility.js';
|
|
194
|
+
import '../enums/submit-item-type.js';
|
|
195
|
+
import '../enums/submit-result-outcome.js';
|
|
178
196
|
import '../enums/validation-failed-response-status.js';
|
|
179
197
|
import '../enums/vocabulary-default-tone.js';
|
|
180
198
|
import '../enums/vocabulary-source.js';
|
|
@@ -6,6 +6,15 @@ import '../query.mjs';
|
|
|
6
6
|
import '../enums/address-type-row-tone.mjs';
|
|
7
7
|
import '../enums/address-type-row-create-request-tone.mjs';
|
|
8
8
|
import '../enums/address-type-row-update-request-tone.mjs';
|
|
9
|
+
import '../enums/approval-rule-approver-type.mjs';
|
|
10
|
+
import '../enums/approval-rule-condition.mjs';
|
|
11
|
+
import '../enums/approval-rule-effect.mjs';
|
|
12
|
+
import '../enums/approval-rule-create-request-approver-type.mjs';
|
|
13
|
+
import '../enums/approval-rule-create-request-condition.mjs';
|
|
14
|
+
import '../enums/approval-rule-create-request-effect.mjs';
|
|
15
|
+
import '../enums/approval-rule-update-request-approver-type.mjs';
|
|
16
|
+
import '../enums/approval-rule-update-request-condition.mjs';
|
|
17
|
+
import '../enums/approval-rule-update-request-effect.mjs';
|
|
9
18
|
import '../enums/assets-source.mjs';
|
|
10
19
|
import '../enums/attribute-value-bucket.mjs';
|
|
11
20
|
import '../enums/auth-mail-source.mjs';
|
|
@@ -118,6 +127,8 @@ import '../enums/payment-term-tone.mjs';
|
|
|
118
127
|
import '../enums/payment-term-create-request-tone.mjs';
|
|
119
128
|
import '../enums/payment-term-update-request-tone.mjs';
|
|
120
129
|
import '../enums/payment-vocabulary-tone.mjs';
|
|
130
|
+
import '../enums/pending-approval-approver-type.mjs';
|
|
131
|
+
import '../enums/pending-approval-status.mjs';
|
|
121
132
|
import '../enums/price-ending-rule.mjs';
|
|
122
133
|
import '../enums/price-entries-adjust-response-rounding.mjs';
|
|
123
134
|
import '../enums/price-entries-adjust-response-rounding-mode.mjs';
|
|
@@ -140,6 +151,11 @@ import '../enums/product-grid-column-source.mjs';
|
|
|
140
151
|
import '../enums/product-label-source.mjs';
|
|
141
152
|
import '../enums/product-label-attribute-source.mjs';
|
|
142
153
|
import '../enums/products-kind.mjs';
|
|
154
|
+
import '../enums/purchase-request-status.mjs';
|
|
155
|
+
import '../enums/purchase-request-event-name.mjs';
|
|
156
|
+
import '../enums/purchase-request-item-type.mjs';
|
|
157
|
+
import '../enums/purchase-request-item-create-request-type.mjs';
|
|
158
|
+
import '../enums/purchase-request-item-update-request-type.mjs';
|
|
143
159
|
import '../enums/reorder-point-source.mjs';
|
|
144
160
|
import '../enums/reservation-status.mjs';
|
|
145
161
|
import '../enums/price-on-request-reason.mjs';
|
|
@@ -177,6 +193,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
|
|
|
177
193
|
import '../enums/shipping-weight-unit-update-request-tone.mjs';
|
|
178
194
|
import '../enums/stock-movement-type.mjs';
|
|
179
195
|
import '../enums/store-asset-request-visibility.mjs';
|
|
196
|
+
import '../enums/submit-item-type.mjs';
|
|
197
|
+
import '../enums/submit-result-outcome.mjs';
|
|
180
198
|
import '../enums/validation-failed-response-status.mjs';
|
|
181
199
|
import '../enums/vocabulary-default-tone.mjs';
|
|
182
200
|
import '../enums/vocabulary-source.mjs';
|
|
@@ -245,7 +263,7 @@ declare class InventoriesLocations {
|
|
|
245
263
|
* @param {string} params.createdAt - Exact-match filter on `created_at`. When the row was created.
|
|
246
264
|
* @param {string} params.updatedAt - Exact-match filter on `updated_at`. When the row was last written.
|
|
247
265
|
* @throws {RevenexxException}
|
|
248
|
-
* @returns {Promise<
|
|
266
|
+
* @returns {Promise<{}>}
|
|
249
267
|
*/
|
|
250
268
|
inventoriesLocationsList(params?: {
|
|
251
269
|
limit?: number;
|
|
@@ -262,7 +280,7 @@ declare class InventoriesLocations {
|
|
|
262
280
|
metadata?: string;
|
|
263
281
|
createdAt?: string;
|
|
264
282
|
updatedAt?: string;
|
|
265
|
-
}): Promise<
|
|
283
|
+
}): Promise<{}>;
|
|
266
284
|
/**
|
|
267
285
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the list a `location_code` is resolved against on every stock call, so it is the first thing to read when a receipt answers "unknown location". It answers no quantities at all — how much is at a location is GET /inventories/stock?location_id=…, and what may still be sold is POST /inventories/availability. Filter `?enabled=true` for the operational subset: availability and reserve only ever look at enabled locations, so a disabled one is invisible to a shop while keeping every row that points at it.
|
|
268
286
|
*
|
|
@@ -281,10 +299,10 @@ declare class InventoriesLocations {
|
|
|
281
299
|
* @param {string} createdAt - Exact-match filter on `created_at`. When the row was created.
|
|
282
300
|
* @param {string} updatedAt - Exact-match filter on `updated_at`. When the row was last written.
|
|
283
301
|
* @throws {RevenexxException}
|
|
284
|
-
* @returns {Promise<
|
|
302
|
+
* @returns {Promise<{}>}
|
|
285
303
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
286
304
|
*/
|
|
287
|
-
inventoriesLocationsList(limit?: number, offset?: number, order?: string, id?: string, code?: string, name?: string, labels?: string, type?: InventoriesLocationsListType, priority?: number, enabled?: boolean, address?: string, metadata?: string, createdAt?: string, updatedAt?: string): Promise<
|
|
305
|
+
inventoriesLocationsList(limit?: number, offset?: number, order?: string, id?: string, code?: string, name?: string, labels?: string, type?: InventoriesLocationsListType, priority?: number, enabled?: boolean, address?: string, metadata?: string, createdAt?: string, updatedAt?: string): Promise<{}>;
|
|
288
306
|
/**
|
|
289
307
|
* Registers a new place stock can be kept, and `type` says what kind of place it is: a warehouse of your own, a store whose shop floor a click-and-collect order draws on, a dropship supplier whose stock this row only tracks, or a virtual bucket that is not a building at all — pre-orders, consignment, a quarantine shelf. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert. A new location starts EMPTY and creating one moves nothing: stock arrives through POST /inventories/receive, or is transferred by two adjustments, one negative at the old location and one positive here. Mind the two columns that are not decoration — `priority` decides where a reservation is served from before `type` ever does (nothing branches on `type`), and `enabled` defaults to true, so a location created for a warehouse that has not opened yet starts being offered by availability and reserve immediately.
|
|
290
308
|
*
|
|
@@ -297,7 +315,7 @@ declare class InventoriesLocations {
|
|
|
297
315
|
* @param {number} params.priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
298
316
|
* @param {LocationType} params.type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
299
317
|
* @throws {RevenexxException}
|
|
300
|
-
* @returns {Promise<Models.
|
|
318
|
+
* @returns {Promise<Models.Location>}
|
|
301
319
|
*/
|
|
302
320
|
inventoriesLocationsCreate(params: {
|
|
303
321
|
code: string;
|
|
@@ -308,7 +326,7 @@ declare class InventoriesLocations {
|
|
|
308
326
|
metadata?: object;
|
|
309
327
|
priority?: number;
|
|
310
328
|
type?: LocationType;
|
|
311
|
-
}): Promise<Models.
|
|
329
|
+
}): Promise<Models.Location>;
|
|
312
330
|
/**
|
|
313
331
|
* Registers a new place stock can be kept, and `type` says what kind of place it is: a warehouse of your own, a store whose shop floor a click-and-collect order draws on, a dropship supplier whose stock this row only tracks, or a virtual bucket that is not a building at all — pre-orders, consignment, a quarantine shelf. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert. A new location starts EMPTY and creating one moves nothing: stock arrives through POST /inventories/receive, or is transferred by two adjustments, one negative at the old location and one positive here. Mind the two columns that are not decoration — `priority` decides where a reservation is served from before `type` ever does (nothing branches on `type`), and `enabled` defaults to true, so a location created for a warehouse that has not opened yet starts being offered by availability and reserve immediately.
|
|
314
332
|
*
|
|
@@ -321,10 +339,10 @@ declare class InventoriesLocations {
|
|
|
321
339
|
* @param {number} priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
322
340
|
* @param {LocationType} type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
323
341
|
* @throws {RevenexxException}
|
|
324
|
-
* @returns {Promise<Models.
|
|
342
|
+
* @returns {Promise<Models.Location>}
|
|
325
343
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
326
344
|
*/
|
|
327
|
-
inventoriesLocationsCreate(code: string, name: string, address?: object, enabled?: boolean, labels?: object, metadata?: object, priority?: number, type?: LocationType): Promise<Models.
|
|
345
|
+
inventoriesLocationsCreate(code: string, name: string, address?: object, enabled?: boolean, labels?: object, metadata?: object, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
328
346
|
/**
|
|
329
347
|
* Gives a tenant its first location, `main`, so the stock calls have somewhere to book into: `receive`, `adjust` and `restock` fall back to the `default_location_code` setting when a caller names no `location_code`, and a tenant with no location at all answers 400 on its first receipt. The platform already runs this on `app.installed`, so calling it by hand is the repair for an install that predates the event or a `main` somebody deleted. Idempotent by CODE, not by contents: a location already carrying that code is reported under `existing` and is NOT touched, so a renamed or disabled `main` stays renamed and disabled. It creates nothing else and never removes a location.
|
|
330
348
|
*
|
|
@@ -337,39 +355,39 @@ declare class InventoriesLocations {
|
|
|
337
355
|
*
|
|
338
356
|
* @param {string} params.id - The location.
|
|
339
357
|
* @throws {RevenexxException}
|
|
340
|
-
* @returns {Promise<
|
|
358
|
+
* @returns {Promise<{}>}
|
|
341
359
|
*/
|
|
342
360
|
inventoriesLocationsDelete(params: {
|
|
343
361
|
id: string;
|
|
344
|
-
}): Promise<
|
|
362
|
+
}): Promise<{}>;
|
|
345
363
|
/**
|
|
346
364
|
* Deleting one takes every `stock_levels` row that points at it with it — the foreign key decides that, not this route. What the database does NOT clean up is everything else carrying the same id: `stock_movements.location_id` and `reservations.location_id` are plain uuid columns and not foreign keys, so those rows stay exactly where they are, pointing at a row that no longer exists, and nothing nulls the pointer. That asymmetry destroys the balances and keeps everything that refers to them, so the route REFUSES while anything still depends on the location and answers 409 with the count — taken here rather than left to whoever is about to click delete, because a client that pre-counts asks a second question whose answer disagrees the moment a receipt lands between the two calls. Two things block it. A stock row still carrying `on_hand`: the cascade would destroy recorded inventory and nothing in this app ever replays the ledger to rebuild a balance, so there is no undo. And a reservation still `active`: a promise to a customer must not outlive the row backing it — such a hold used to survive its stock row, after which /release lowered no `reserved` and still wrote its `release` booking, and /commit booked the whole quantity as a shortfall, neither of them an error. A stock row at zero does not block: it records no quantity. HISTORY never blocks, and is never deleted either — a movement is an accounting record and removing one would falsify it, so the bookings stay, naming a location that no longer resolves, BY DESIGN. A location that once had traffic and now holds nothing is exactly what a merchant closes. To get past the 409, adjust the stock to zero and release or commit the holds; where the location is merely out of service, PUT `enabled: false` keeps every row and can be undone.
|
|
347
365
|
*
|
|
348
366
|
* @param {string} id - The location.
|
|
349
367
|
* @throws {RevenexxException}
|
|
350
|
-
* @returns {Promise<
|
|
368
|
+
* @returns {Promise<{}>}
|
|
351
369
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
352
370
|
*/
|
|
353
|
-
inventoriesLocationsDelete(id: string): Promise<
|
|
371
|
+
inventoriesLocationsDelete(id: string): Promise<{}>;
|
|
354
372
|
/**
|
|
355
373
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the route that turns an id back into a place: `location_id` is on every stock row, every ledger booking and every reservation, and none of them carries the code or the name. Reading it also answers the two questions those rows raise — whether the location is still `enabled` (a disabled one is skipped by availability and reserve while its stock stays exactly where it is) and where its `priority` puts it when the allocation strategy picks somewhere to reserve from.
|
|
356
374
|
*
|
|
357
375
|
* @param {string} params.id - The location.
|
|
358
376
|
* @throws {RevenexxException}
|
|
359
|
-
* @returns {Promise<Models.
|
|
377
|
+
* @returns {Promise<Models.Location>}
|
|
360
378
|
*/
|
|
361
379
|
inventoriesLocationsGet(params: {
|
|
362
380
|
id: string;
|
|
363
|
-
}): Promise<Models.
|
|
381
|
+
}): Promise<Models.Location>;
|
|
364
382
|
/**
|
|
365
383
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the route that turns an id back into a place: `location_id` is on every stock row, every ledger booking and every reservation, and none of them carries the code or the name. Reading it also answers the two questions those rows raise — whether the location is still `enabled` (a disabled one is skipped by availability and reserve while its stock stays exactly where it is) and where its `priority` puts it when the allocation strategy picks somewhere to reserve from.
|
|
366
384
|
*
|
|
367
385
|
* @param {string} id - The location.
|
|
368
386
|
* @throws {RevenexxException}
|
|
369
|
-
* @returns {Promise<Models.
|
|
387
|
+
* @returns {Promise<Models.Location>}
|
|
370
388
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
371
389
|
*/
|
|
372
|
-
inventoriesLocationsGet(id: string): Promise<Models.
|
|
390
|
+
inventoriesLocationsGet(id: string): Promise<Models.Location>;
|
|
373
391
|
/**
|
|
374
392
|
* Partial update: send the fields that change. The one with consequences is `enabled` — setting it to false is how a location is taken out of service WITHOUT losing anything. Availability and reserve stop looking at it, so its stock stops being sellable, while every stock row, ledger booking and reservation that points at it survives untouched and comes back the moment it is enabled again. That is the reversible alternative to DELETE, which is not reversible at all. Changing `code` is the other sharp edge: rows keep their `location_id` so nothing moves, but every caller that names the old code in `location_code` starts getting 400 "unknown location". Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert.
|
|
375
393
|
*
|
|
@@ -383,7 +401,7 @@ declare class InventoriesLocations {
|
|
|
383
401
|
* @param {number} params.priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
384
402
|
* @param {LocationType} params.type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
385
403
|
* @throws {RevenexxException}
|
|
386
|
-
* @returns {Promise<Models.
|
|
404
|
+
* @returns {Promise<Models.Location>}
|
|
387
405
|
*/
|
|
388
406
|
inventoriesLocationsUpdate(params: {
|
|
389
407
|
id: string;
|
|
@@ -395,7 +413,7 @@ declare class InventoriesLocations {
|
|
|
395
413
|
name?: string;
|
|
396
414
|
priority?: number;
|
|
397
415
|
type?: LocationType;
|
|
398
|
-
}): Promise<Models.
|
|
416
|
+
}): Promise<Models.Location>;
|
|
399
417
|
/**
|
|
400
418
|
* Partial update: send the fields that change. The one with consequences is `enabled` — setting it to false is how a location is taken out of service WITHOUT losing anything. Availability and reserve stop looking at it, so its stock stops being sellable, while every stock row, ledger booking and reservation that points at it survives untouched and comes back the moment it is enabled again. That is the reversible alternative to DELETE, which is not reversible at all. Changing `code` is the other sharp edge: rows keep their `location_id` so nothing moves, but every caller that names the old code in `location_code` starts getting 400 "unknown location". Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert.
|
|
401
419
|
*
|
|
@@ -409,10 +427,10 @@ declare class InventoriesLocations {
|
|
|
409
427
|
* @param {number} priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
410
428
|
* @param {LocationType} type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
411
429
|
* @throws {RevenexxException}
|
|
412
|
-
* @returns {Promise<Models.
|
|
430
|
+
* @returns {Promise<Models.Location>}
|
|
413
431
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
414
432
|
*/
|
|
415
|
-
inventoriesLocationsUpdate(id: string, address?: object, code?: string, enabled?: boolean, labels?: object, metadata?: object, name?: string, priority?: number, type?: LocationType): Promise<Models.
|
|
433
|
+
inventoriesLocationsUpdate(id: string, address?: object, code?: string, enabled?: boolean, labels?: object, metadata?: object, name?: string, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
416
434
|
}
|
|
417
435
|
|
|
418
436
|
export { InventoriesLocations };
|
|
@@ -6,6 +6,15 @@ import '../query.js';
|
|
|
6
6
|
import '../enums/address-type-row-tone.js';
|
|
7
7
|
import '../enums/address-type-row-create-request-tone.js';
|
|
8
8
|
import '../enums/address-type-row-update-request-tone.js';
|
|
9
|
+
import '../enums/approval-rule-approver-type.js';
|
|
10
|
+
import '../enums/approval-rule-condition.js';
|
|
11
|
+
import '../enums/approval-rule-effect.js';
|
|
12
|
+
import '../enums/approval-rule-create-request-approver-type.js';
|
|
13
|
+
import '../enums/approval-rule-create-request-condition.js';
|
|
14
|
+
import '../enums/approval-rule-create-request-effect.js';
|
|
15
|
+
import '../enums/approval-rule-update-request-approver-type.js';
|
|
16
|
+
import '../enums/approval-rule-update-request-condition.js';
|
|
17
|
+
import '../enums/approval-rule-update-request-effect.js';
|
|
9
18
|
import '../enums/assets-source.js';
|
|
10
19
|
import '../enums/attribute-value-bucket.js';
|
|
11
20
|
import '../enums/auth-mail-source.js';
|
|
@@ -118,6 +127,8 @@ import '../enums/payment-term-tone.js';
|
|
|
118
127
|
import '../enums/payment-term-create-request-tone.js';
|
|
119
128
|
import '../enums/payment-term-update-request-tone.js';
|
|
120
129
|
import '../enums/payment-vocabulary-tone.js';
|
|
130
|
+
import '../enums/pending-approval-approver-type.js';
|
|
131
|
+
import '../enums/pending-approval-status.js';
|
|
121
132
|
import '../enums/price-ending-rule.js';
|
|
122
133
|
import '../enums/price-entries-adjust-response-rounding.js';
|
|
123
134
|
import '../enums/price-entries-adjust-response-rounding-mode.js';
|
|
@@ -140,6 +151,11 @@ import '../enums/product-grid-column-source.js';
|
|
|
140
151
|
import '../enums/product-label-source.js';
|
|
141
152
|
import '../enums/product-label-attribute-source.js';
|
|
142
153
|
import '../enums/products-kind.js';
|
|
154
|
+
import '../enums/purchase-request-status.js';
|
|
155
|
+
import '../enums/purchase-request-event-name.js';
|
|
156
|
+
import '../enums/purchase-request-item-type.js';
|
|
157
|
+
import '../enums/purchase-request-item-create-request-type.js';
|
|
158
|
+
import '../enums/purchase-request-item-update-request-type.js';
|
|
143
159
|
import '../enums/reorder-point-source.js';
|
|
144
160
|
import '../enums/reservation-status.js';
|
|
145
161
|
import '../enums/price-on-request-reason.js';
|
|
@@ -177,6 +193,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
|
|
|
177
193
|
import '../enums/shipping-weight-unit-update-request-tone.js';
|
|
178
194
|
import '../enums/stock-movement-type.js';
|
|
179
195
|
import '../enums/store-asset-request-visibility.js';
|
|
196
|
+
import '../enums/submit-item-type.js';
|
|
197
|
+
import '../enums/submit-result-outcome.js';
|
|
180
198
|
import '../enums/validation-failed-response-status.js';
|
|
181
199
|
import '../enums/vocabulary-default-tone.js';
|
|
182
200
|
import '../enums/vocabulary-source.js';
|
|
@@ -245,7 +263,7 @@ declare class InventoriesLocations {
|
|
|
245
263
|
* @param {string} params.createdAt - Exact-match filter on `created_at`. When the row was created.
|
|
246
264
|
* @param {string} params.updatedAt - Exact-match filter on `updated_at`. When the row was last written.
|
|
247
265
|
* @throws {RevenexxException}
|
|
248
|
-
* @returns {Promise<
|
|
266
|
+
* @returns {Promise<{}>}
|
|
249
267
|
*/
|
|
250
268
|
inventoriesLocationsList(params?: {
|
|
251
269
|
limit?: number;
|
|
@@ -262,7 +280,7 @@ declare class InventoriesLocations {
|
|
|
262
280
|
metadata?: string;
|
|
263
281
|
createdAt?: string;
|
|
264
282
|
updatedAt?: string;
|
|
265
|
-
}): Promise<
|
|
283
|
+
}): Promise<{}>;
|
|
266
284
|
/**
|
|
267
285
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the list a `location_code` is resolved against on every stock call, so it is the first thing to read when a receipt answers "unknown location". It answers no quantities at all — how much is at a location is GET /inventories/stock?location_id=…, and what may still be sold is POST /inventories/availability. Filter `?enabled=true` for the operational subset: availability and reserve only ever look at enabled locations, so a disabled one is invisible to a shop while keeping every row that points at it.
|
|
268
286
|
*
|
|
@@ -281,10 +299,10 @@ declare class InventoriesLocations {
|
|
|
281
299
|
* @param {string} createdAt - Exact-match filter on `created_at`. When the row was created.
|
|
282
300
|
* @param {string} updatedAt - Exact-match filter on `updated_at`. When the row was last written.
|
|
283
301
|
* @throws {RevenexxException}
|
|
284
|
-
* @returns {Promise<
|
|
302
|
+
* @returns {Promise<{}>}
|
|
285
303
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
286
304
|
*/
|
|
287
|
-
inventoriesLocationsList(limit?: number, offset?: number, order?: string, id?: string, code?: string, name?: string, labels?: string, type?: InventoriesLocationsListType, priority?: number, enabled?: boolean, address?: string, metadata?: string, createdAt?: string, updatedAt?: string): Promise<
|
|
305
|
+
inventoriesLocationsList(limit?: number, offset?: number, order?: string, id?: string, code?: string, name?: string, labels?: string, type?: InventoriesLocationsListType, priority?: number, enabled?: boolean, address?: string, metadata?: string, createdAt?: string, updatedAt?: string): Promise<{}>;
|
|
288
306
|
/**
|
|
289
307
|
* Registers a new place stock can be kept, and `type` says what kind of place it is: a warehouse of your own, a store whose shop floor a click-and-collect order draws on, a dropship supplier whose stock this row only tracks, or a virtual bucket that is not a building at all — pre-orders, consignment, a quarantine shelf. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert. A new location starts EMPTY and creating one moves nothing: stock arrives through POST /inventories/receive, or is transferred by two adjustments, one negative at the old location and one positive here. Mind the two columns that are not decoration — `priority` decides where a reservation is served from before `type` ever does (nothing branches on `type`), and `enabled` defaults to true, so a location created for a warehouse that has not opened yet starts being offered by availability and reserve immediately.
|
|
290
308
|
*
|
|
@@ -297,7 +315,7 @@ declare class InventoriesLocations {
|
|
|
297
315
|
* @param {number} params.priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
298
316
|
* @param {LocationType} params.type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
299
317
|
* @throws {RevenexxException}
|
|
300
|
-
* @returns {Promise<Models.
|
|
318
|
+
* @returns {Promise<Models.Location>}
|
|
301
319
|
*/
|
|
302
320
|
inventoriesLocationsCreate(params: {
|
|
303
321
|
code: string;
|
|
@@ -308,7 +326,7 @@ declare class InventoriesLocations {
|
|
|
308
326
|
metadata?: object;
|
|
309
327
|
priority?: number;
|
|
310
328
|
type?: LocationType;
|
|
311
|
-
}): Promise<Models.
|
|
329
|
+
}): Promise<Models.Location>;
|
|
312
330
|
/**
|
|
313
331
|
* Registers a new place stock can be kept, and `type` says what kind of place it is: a warehouse of your own, a store whose shop floor a click-and-collect order draws on, a dropship supplier whose stock this row only tracks, or a virtual bucket that is not a building at all — pre-orders, consignment, a quarantine shelf. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert. A new location starts EMPTY and creating one moves nothing: stock arrives through POST /inventories/receive, or is transferred by two adjustments, one negative at the old location and one positive here. Mind the two columns that are not decoration — `priority` decides where a reservation is served from before `type` ever does (nothing branches on `type`), and `enabled` defaults to true, so a location created for a warehouse that has not opened yet starts being offered by availability and reserve immediately.
|
|
314
332
|
*
|
|
@@ -321,10 +339,10 @@ declare class InventoriesLocations {
|
|
|
321
339
|
* @param {number} priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
322
340
|
* @param {LocationType} type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
323
341
|
* @throws {RevenexxException}
|
|
324
|
-
* @returns {Promise<Models.
|
|
342
|
+
* @returns {Promise<Models.Location>}
|
|
325
343
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
326
344
|
*/
|
|
327
|
-
inventoriesLocationsCreate(code: string, name: string, address?: object, enabled?: boolean, labels?: object, metadata?: object, priority?: number, type?: LocationType): Promise<Models.
|
|
345
|
+
inventoriesLocationsCreate(code: string, name: string, address?: object, enabled?: boolean, labels?: object, metadata?: object, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
328
346
|
/**
|
|
329
347
|
* Gives a tenant its first location, `main`, so the stock calls have somewhere to book into: `receive`, `adjust` and `restock` fall back to the `default_location_code` setting when a caller names no `location_code`, and a tenant with no location at all answers 400 on its first receipt. The platform already runs this on `app.installed`, so calling it by hand is the repair for an install that predates the event or a `main` somebody deleted. Idempotent by CODE, not by contents: a location already carrying that code is reported under `existing` and is NOT touched, so a renamed or disabled `main` stays renamed and disabled. It creates nothing else and never removes a location.
|
|
330
348
|
*
|
|
@@ -337,39 +355,39 @@ declare class InventoriesLocations {
|
|
|
337
355
|
*
|
|
338
356
|
* @param {string} params.id - The location.
|
|
339
357
|
* @throws {RevenexxException}
|
|
340
|
-
* @returns {Promise<
|
|
358
|
+
* @returns {Promise<{}>}
|
|
341
359
|
*/
|
|
342
360
|
inventoriesLocationsDelete(params: {
|
|
343
361
|
id: string;
|
|
344
|
-
}): Promise<
|
|
362
|
+
}): Promise<{}>;
|
|
345
363
|
/**
|
|
346
364
|
* Deleting one takes every `stock_levels` row that points at it with it — the foreign key decides that, not this route. What the database does NOT clean up is everything else carrying the same id: `stock_movements.location_id` and `reservations.location_id` are plain uuid columns and not foreign keys, so those rows stay exactly where they are, pointing at a row that no longer exists, and nothing nulls the pointer. That asymmetry destroys the balances and keeps everything that refers to them, so the route REFUSES while anything still depends on the location and answers 409 with the count — taken here rather than left to whoever is about to click delete, because a client that pre-counts asks a second question whose answer disagrees the moment a receipt lands between the two calls. Two things block it. A stock row still carrying `on_hand`: the cascade would destroy recorded inventory and nothing in this app ever replays the ledger to rebuild a balance, so there is no undo. And a reservation still `active`: a promise to a customer must not outlive the row backing it — such a hold used to survive its stock row, after which /release lowered no `reserved` and still wrote its `release` booking, and /commit booked the whole quantity as a shortfall, neither of them an error. A stock row at zero does not block: it records no quantity. HISTORY never blocks, and is never deleted either — a movement is an accounting record and removing one would falsify it, so the bookings stay, naming a location that no longer resolves, BY DESIGN. A location that once had traffic and now holds nothing is exactly what a merchant closes. To get past the 409, adjust the stock to zero and release or commit the holds; where the location is merely out of service, PUT `enabled: false` keeps every row and can be undone.
|
|
347
365
|
*
|
|
348
366
|
* @param {string} id - The location.
|
|
349
367
|
* @throws {RevenexxException}
|
|
350
|
-
* @returns {Promise<
|
|
368
|
+
* @returns {Promise<{}>}
|
|
351
369
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
352
370
|
*/
|
|
353
|
-
inventoriesLocationsDelete(id: string): Promise<
|
|
371
|
+
inventoriesLocationsDelete(id: string): Promise<{}>;
|
|
354
372
|
/**
|
|
355
373
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the route that turns an id back into a place: `location_id` is on every stock row, every ledger booking and every reservation, and none of them carries the code or the name. Reading it also answers the two questions those rows raise — whether the location is still `enabled` (a disabled one is skipped by availability and reserve while its stock stays exactly where it is) and where its `priority` puts it when the allocation strategy picks somewhere to reserve from.
|
|
356
374
|
*
|
|
357
375
|
* @param {string} params.id - The location.
|
|
358
376
|
* @throws {RevenexxException}
|
|
359
|
-
* @returns {Promise<Models.
|
|
377
|
+
* @returns {Promise<Models.Location>}
|
|
360
378
|
*/
|
|
361
379
|
inventoriesLocationsGet(params: {
|
|
362
380
|
id: string;
|
|
363
|
-
}): Promise<Models.
|
|
381
|
+
}): Promise<Models.Location>;
|
|
364
382
|
/**
|
|
365
383
|
* A location is WHERE stock is kept — a warehouse, a shop floor, a supplier that dropships, or a virtual bucket for pre-orders and quarantine. It holds no quantity of its own: what is at it is a stock level. `type` is descriptive and nothing branches on it; `priority` is the number that decides which location a reservation is served from, and `enabled` decides whether it is offered at all. This is the route that turns an id back into a place: `location_id` is on every stock row, every ledger booking and every reservation, and none of them carries the code or the name. Reading it also answers the two questions those rows raise — whether the location is still `enabled` (a disabled one is skipped by availability and reserve while its stock stays exactly where it is) and where its `priority` puts it when the allocation strategy picks somewhere to reserve from.
|
|
366
384
|
*
|
|
367
385
|
* @param {string} id - The location.
|
|
368
386
|
* @throws {RevenexxException}
|
|
369
|
-
* @returns {Promise<Models.
|
|
387
|
+
* @returns {Promise<Models.Location>}
|
|
370
388
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
371
389
|
*/
|
|
372
|
-
inventoriesLocationsGet(id: string): Promise<Models.
|
|
390
|
+
inventoriesLocationsGet(id: string): Promise<Models.Location>;
|
|
373
391
|
/**
|
|
374
392
|
* Partial update: send the fields that change. The one with consequences is `enabled` — setting it to false is how a location is taken out of service WITHOUT losing anything. Availability and reserve stop looking at it, so its stock stops being sellable, while every stock row, ledger booking and reservation that points at it survives untouched and comes back the moment it is enabled again. That is the reversible alternative to DELETE, which is not reversible at all. Changing `code` is the other sharp edge: rows keep their `location_id` so nothing moves, but every caller that names the old code in `location_code` starts getting 400 "unknown location". Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert.
|
|
375
393
|
*
|
|
@@ -383,7 +401,7 @@ declare class InventoriesLocations {
|
|
|
383
401
|
* @param {number} params.priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
384
402
|
* @param {LocationType} params.type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
385
403
|
* @throws {RevenexxException}
|
|
386
|
-
* @returns {Promise<Models.
|
|
404
|
+
* @returns {Promise<Models.Location>}
|
|
387
405
|
*/
|
|
388
406
|
inventoriesLocationsUpdate(params: {
|
|
389
407
|
id: string;
|
|
@@ -395,7 +413,7 @@ declare class InventoriesLocations {
|
|
|
395
413
|
name?: string;
|
|
396
414
|
priority?: number;
|
|
397
415
|
type?: LocationType;
|
|
398
|
-
}): Promise<Models.
|
|
416
|
+
}): Promise<Models.Location>;
|
|
399
417
|
/**
|
|
400
418
|
* Partial update: send the fields that change. The one with consequences is `enabled` — setting it to false is how a location is taken out of service WITHOUT losing anything. Availability and reserve stop looking at it, so its stock stops being sellable, while every stock row, ledger booking and reservation that points at it survives untouched and comes back the moment it is enabled again. That is the reversible alternative to DELETE, which is not reversible at all. Changing `code` is the other sharp edge: rows keep their `location_id` so nothing moves, but every caller that names the old code in `location_code` starts getting 400 "unknown location". Two rows of this tenant may not share `code` — that is the 409, and it answers an update that moves a row onto a sibling's value exactly as it answers a second insert.
|
|
401
419
|
*
|
|
@@ -409,10 +427,10 @@ declare class InventoriesLocations {
|
|
|
409
427
|
* @param {number} priority - Sourcing order for POST /inventories/reserve while `allocation_strategy` is 'priority': the enabled locations are walked ASCENDING and the first that can cover the item wins, so a LOWER number is preferred. Locations that tie keep the order the database returns them in — give every location a distinct priority if the order matters. Defaults to 0.
|
|
410
428
|
* @param {LocationType} type - What kind of place holds the stock. 'warehouse' — own stock, the default. 'store' — a retail floor, the stock a click-and-collect order draws on. 'dropship' — a supplier ships it and this row tracks what they say they hold. 'virtual' — a bucket that is not a building (pre-orders, consignment, a quarantine shelf). Descriptive only: sourcing order comes from `priority`, and no route in this app treats one type differently from another. Defaults to 'warehouse'.
|
|
411
429
|
* @throws {RevenexxException}
|
|
412
|
-
* @returns {Promise<Models.
|
|
430
|
+
* @returns {Promise<Models.Location>}
|
|
413
431
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
414
432
|
*/
|
|
415
|
-
inventoriesLocationsUpdate(id: string, address?: object, code?: string, enabled?: boolean, labels?: object, metadata?: object, name?: string, priority?: number, type?: LocationType): Promise<Models.
|
|
433
|
+
inventoriesLocationsUpdate(id: string, address?: object, code?: string, enabled?: boolean, labels?: object, metadata?: object, name?: string, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
416
434
|
}
|
|
417
435
|
|
|
418
436
|
export { InventoriesLocations };
|