@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
|
@@ -9,6 +9,15 @@ import '../query.mjs';
|
|
|
9
9
|
import '../enums/address-type-row-tone.mjs';
|
|
10
10
|
import '../enums/address-type-row-create-request-tone.mjs';
|
|
11
11
|
import '../enums/address-type-row-update-request-tone.mjs';
|
|
12
|
+
import '../enums/approval-rule-approver-type.mjs';
|
|
13
|
+
import '../enums/approval-rule-condition.mjs';
|
|
14
|
+
import '../enums/approval-rule-effect.mjs';
|
|
15
|
+
import '../enums/approval-rule-create-request-approver-type.mjs';
|
|
16
|
+
import '../enums/approval-rule-create-request-condition.mjs';
|
|
17
|
+
import '../enums/approval-rule-create-request-effect.mjs';
|
|
18
|
+
import '../enums/approval-rule-update-request-approver-type.mjs';
|
|
19
|
+
import '../enums/approval-rule-update-request-condition.mjs';
|
|
20
|
+
import '../enums/approval-rule-update-request-effect.mjs';
|
|
12
21
|
import '../enums/assets-source.mjs';
|
|
13
22
|
import '../enums/attribute-value-bucket.mjs';
|
|
14
23
|
import '../enums/auth-mail-source.mjs';
|
|
@@ -120,6 +129,8 @@ import '../enums/payment-term-tone.mjs';
|
|
|
120
129
|
import '../enums/payment-term-create-request-tone.mjs';
|
|
121
130
|
import '../enums/payment-term-update-request-tone.mjs';
|
|
122
131
|
import '../enums/payment-vocabulary-tone.mjs';
|
|
132
|
+
import '../enums/pending-approval-approver-type.mjs';
|
|
133
|
+
import '../enums/pending-approval-status.mjs';
|
|
123
134
|
import '../enums/price-ending-rule.mjs';
|
|
124
135
|
import '../enums/price-entries-adjust-response-rounding.mjs';
|
|
125
136
|
import '../enums/price-entries-adjust-response-rounding-mode.mjs';
|
|
@@ -141,6 +152,11 @@ import '../enums/product-grid-column-source.mjs';
|
|
|
141
152
|
import '../enums/product-label-source.mjs';
|
|
142
153
|
import '../enums/product-label-attribute-source.mjs';
|
|
143
154
|
import '../enums/products-kind.mjs';
|
|
155
|
+
import '../enums/purchase-request-status.mjs';
|
|
156
|
+
import '../enums/purchase-request-event-name.mjs';
|
|
157
|
+
import '../enums/purchase-request-item-type.mjs';
|
|
158
|
+
import '../enums/purchase-request-item-create-request-type.mjs';
|
|
159
|
+
import '../enums/purchase-request-item-update-request-type.mjs';
|
|
144
160
|
import '../enums/reorder-point-source.mjs';
|
|
145
161
|
import '../enums/reservation-status.mjs';
|
|
146
162
|
import '../enums/price-on-request-reason.mjs';
|
|
@@ -178,6 +194,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
|
|
|
178
194
|
import '../enums/shipping-weight-unit-update-request-tone.mjs';
|
|
179
195
|
import '../enums/stock-movement-type.mjs';
|
|
180
196
|
import '../enums/store-asset-request-visibility.mjs';
|
|
197
|
+
import '../enums/submit-item-type.mjs';
|
|
198
|
+
import '../enums/submit-result-outcome.mjs';
|
|
181
199
|
import '../enums/validation-failed-response-status.mjs';
|
|
182
200
|
import '../enums/vocabulary-default-tone.mjs';
|
|
183
201
|
import '../enums/vocabulary-source.mjs';
|
|
@@ -314,7 +332,7 @@ declare class ProductsCategories {
|
|
|
314
332
|
* @param {string} params.rulesComputedAt - When the rule last ran TO COMPLETION and its memberships were synced. Null means no pass has ever finished — a recompute is chunked, so a half-finished pass leaves this untouched.
|
|
315
333
|
* @param {object} params.values - Whatever this catalog keeps on a category beyond the model — the keys belong to the tenant, not to this app, and nothing here reads them.
|
|
316
334
|
* @throws {RevenexxException}
|
|
317
|
-
* @returns {Promise<Models.
|
|
335
|
+
* @returns {Promise<Models.Categories>}
|
|
318
336
|
*/
|
|
319
337
|
productsCategoriesCreate(params: {
|
|
320
338
|
code: string;
|
|
@@ -326,7 +344,7 @@ declare class ProductsCategories {
|
|
|
326
344
|
rules?: object;
|
|
327
345
|
rulesComputedAt?: string;
|
|
328
346
|
values?: object;
|
|
329
|
-
}): Promise<Models.
|
|
347
|
+
}): Promise<Models.Categories>;
|
|
330
348
|
/**
|
|
331
349
|
* Creates one category and answers 201 with the stored row, including the id and the timestamps the database filled in — a client never sends an id, it reads one back and uses it in the path of every later call.
|
|
332
350
|
*
|
|
@@ -344,29 +362,29 @@ declare class ProductsCategories {
|
|
|
344
362
|
* @param {string} rulesComputedAt - When the rule last ran TO COMPLETION and its memberships were synced. Null means no pass has ever finished — a recompute is chunked, so a half-finished pass leaves this untouched.
|
|
345
363
|
* @param {object} values - Whatever this catalog keeps on a category beyond the model — the keys belong to the tenant, not to this app, and nothing here reads them.
|
|
346
364
|
* @throws {RevenexxException}
|
|
347
|
-
* @returns {Promise<Models.
|
|
365
|
+
* @returns {Promise<Models.Categories>}
|
|
348
366
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
349
367
|
*/
|
|
350
|
-
productsCategoriesCreate(code: string, labels?: object, parentId?: string, xpath?: string, position?: number, ruleMatch?: CategoriesRuleMatch, rules?: object, rulesComputedAt?: string, values?: object): Promise<Models.
|
|
368
|
+
productsCategoriesCreate(code: string, labels?: object, parentId?: string, xpath?: string, position?: number, ruleMatch?: CategoriesRuleMatch, rules?: object, rulesComputedAt?: string, values?: object): Promise<Models.Categories>;
|
|
351
369
|
/**
|
|
352
370
|
* What the nightly `recompute-category-rules` schedule calls, and the call to reach for after a bulk import has changed what the rules select. Same sync as the single-category recompute, applied to every category with non-null rules. The whole run shares ONE budget: a category the budget no longer reaches is reported as `skipped` and picked up by the next run, and a failing category is reported in its result entry instead of aborting the run.
|
|
353
371
|
*
|
|
354
372
|
* @param {object} params.data - Request body
|
|
355
373
|
* @throws {RevenexxException}
|
|
356
|
-
* @returns {Promise<
|
|
374
|
+
* @returns {Promise<{}>}
|
|
357
375
|
*/
|
|
358
376
|
productsCategoriesRulesRecomputeAll(params: {
|
|
359
377
|
data: object;
|
|
360
|
-
}): Promise<
|
|
378
|
+
}): Promise<{}>;
|
|
361
379
|
/**
|
|
362
380
|
* What the nightly `recompute-category-rules` schedule calls, and the call to reach for after a bulk import has changed what the rules select. Same sync as the single-category recompute, applied to every category with non-null rules. The whole run shares ONE budget: a category the budget no longer reaches is reported as `skipped` and picked up by the next run, and a failing category is reported in its result entry instead of aborting the run.
|
|
363
381
|
*
|
|
364
382
|
* @param {object} data - Request body
|
|
365
383
|
* @throws {RevenexxException}
|
|
366
|
-
* @returns {Promise<
|
|
384
|
+
* @returns {Promise<{}>}
|
|
367
385
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
368
386
|
*/
|
|
369
|
-
productsCategoriesRulesRecomputeAll(data: object): Promise<
|
|
387
|
+
productsCategoriesRulesRecomputeAll(data: object): Promise<{}>;
|
|
370
388
|
/**
|
|
371
389
|
* Dry-runs a rule: how many products it selects, plus a sample of up to ten, and it WRITES NOTHING. Evaluates the rule in the request body against the live catalog WITHOUT touching product_categories — this powers the cockpit's "matches N products" preview while an operator edits a rule. Soft-deleted products are excluded. Counting is delegated to the database, never enumerated: a rule that compiles to a single query is answered by one exact-count request whatever its match set. A rule that needs several queries (rule_match "any", or a repeated column such as a range) is combined in the app and stops at `cap` ids — check `capped` before showing `count` as a total.
|
|
372
390
|
*
|
|
@@ -374,13 +392,13 @@ declare class ProductsCategories {
|
|
|
374
392
|
* @param {Models.CategoryRuleCondition[]} params.conditions - Between 1 and 25 conditions — a rule is a selector, not a query language. An empty list is a 400, not "everything".
|
|
375
393
|
* @param {CategoryRuleMatch} params.ruleMatch - 'all' ANDs every condition (default), 'any' ORs them.
|
|
376
394
|
* @throws {RevenexxException}
|
|
377
|
-
* @returns {Promise<
|
|
395
|
+
* @returns {Promise<{}>}
|
|
378
396
|
*/
|
|
379
397
|
productsCategoriesRulesPreview(params: {
|
|
380
398
|
categoryId: string;
|
|
381
399
|
conditions: Models.CategoryRuleCondition[];
|
|
382
400
|
ruleMatch?: CategoryRuleMatch;
|
|
383
|
-
}): Promise<
|
|
401
|
+
}): Promise<{}>;
|
|
384
402
|
/**
|
|
385
403
|
* Dry-runs a rule: how many products it selects, plus a sample of up to ten, and it WRITES NOTHING. Evaluates the rule in the request body against the live catalog WITHOUT touching product_categories — this powers the cockpit's "matches N products" preview while an operator edits a rule. Soft-deleted products are excluded. Counting is delegated to the database, never enumerated: a rule that compiles to a single query is answered by one exact-count request whatever its match set. A rule that needs several queries (rule_match "any", or a repeated column such as a range) is combined in the app and stops at `cap` ids — check `capped` before showing `count` as a total.
|
|
386
404
|
*
|
|
@@ -388,10 +406,10 @@ declare class ProductsCategories {
|
|
|
388
406
|
* @param {Models.CategoryRuleCondition[]} conditions - Between 1 and 25 conditions — a rule is a selector, not a query language. An empty list is a 400, not "everything".
|
|
389
407
|
* @param {CategoryRuleMatch} ruleMatch - 'all' ANDs every condition (default), 'any' ORs them.
|
|
390
408
|
* @throws {RevenexxException}
|
|
391
|
-
* @returns {Promise<
|
|
409
|
+
* @returns {Promise<{}>}
|
|
392
410
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
393
411
|
*/
|
|
394
|
-
productsCategoriesRulesPreview(categoryId: string, conditions: Models.CategoryRuleCondition[], ruleMatch?: CategoryRuleMatch): Promise<
|
|
412
|
+
productsCategoriesRulesPreview(categoryId: string, conditions: Models.CategoryRuleCondition[], ruleMatch?: CategoryRuleMatch): Promise<{}>;
|
|
395
413
|
/**
|
|
396
414
|
* Syncs one category's rule-derived memberships to what its stored rule selects today. Evaluates categories.rules (NOT the request body), then inserts the newly matching products as source='rule' rows and deletes the rule rows that no longer match. Manual (source='manual') memberships are never inserted, deleted or shadowed. Stamps categories.rules_computed_at.
|
|
397
415
|
*
|
|
@@ -400,12 +418,12 @@ declare class ProductsCategories {
|
|
|
400
418
|
* @param {string} params.categoryId - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
401
419
|
* @param {string} params.cursor - The `cursor` a previous call returned, to continue that pass. Send `null` explicitly to restart from the beginning; omit the field to let the app decide (resume if a pass is in flight, otherwise start fresh). Anything that is not a string or null is a 400.
|
|
402
420
|
* @throws {RevenexxException}
|
|
403
|
-
* @returns {Promise<Models.
|
|
421
|
+
* @returns {Promise<Models.CategoryRecomputeResult>}
|
|
404
422
|
*/
|
|
405
423
|
productsCategoriesRulesRecompute(params: {
|
|
406
424
|
categoryId: string;
|
|
407
425
|
cursor?: string;
|
|
408
|
-
}): Promise<Models.
|
|
426
|
+
}): Promise<Models.CategoryRecomputeResult>;
|
|
409
427
|
/**
|
|
410
428
|
* Syncs one category's rule-derived memberships to what its stored rule selects today. Evaluates categories.rules (NOT the request body), then inserts the newly matching products as source='rule' rows and deletes the rule rows that no longer match. Manual (source='manual') memberships are never inserted, deleted or shadowed. Stamps categories.rules_computed_at.
|
|
411
429
|
*
|
|
@@ -414,10 +432,10 @@ declare class ProductsCategories {
|
|
|
414
432
|
* @param {string} categoryId - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
415
433
|
* @param {string} cursor - The `cursor` a previous call returned, to continue that pass. Send `null` explicitly to restart from the beginning; omit the field to let the app decide (resume if a pass is in flight, otherwise start fresh). Anything that is not a string or null is a 400.
|
|
416
434
|
* @throws {RevenexxException}
|
|
417
|
-
* @returns {Promise<Models.
|
|
435
|
+
* @returns {Promise<Models.CategoryRecomputeResult>}
|
|
418
436
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
419
437
|
*/
|
|
420
|
-
productsCategoriesRulesRecompute(categoryId: string, cursor?: string): Promise<Models.
|
|
438
|
+
productsCategoriesRulesRecompute(categoryId: string, cursor?: string): Promise<Models.CategoryRecomputeResult>;
|
|
421
439
|
/**
|
|
422
440
|
* Deletes one category by id. It is a hard delete — the row is gone, and the answer is a confirmation rather than a result to branch on.
|
|
423
441
|
*
|
|
@@ -427,11 +445,11 @@ declare class ProductsCategories {
|
|
|
427
445
|
*
|
|
428
446
|
* @param {string} params.id - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
429
447
|
* @throws {RevenexxException}
|
|
430
|
-
* @returns {Promise<
|
|
448
|
+
* @returns {Promise<{}>}
|
|
431
449
|
*/
|
|
432
450
|
productsCategoriesDelete(params: {
|
|
433
451
|
id: string;
|
|
434
|
-
}): Promise<
|
|
452
|
+
}): Promise<{}>;
|
|
435
453
|
/**
|
|
436
454
|
* Deletes one category by id. It is a hard delete — the row is gone, and the answer is a confirmation rather than a result to branch on.
|
|
437
455
|
*
|
|
@@ -441,10 +459,10 @@ declare class ProductsCategories {
|
|
|
441
459
|
*
|
|
442
460
|
* @param {string} id - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
443
461
|
* @throws {RevenexxException}
|
|
444
|
-
* @returns {Promise<
|
|
462
|
+
* @returns {Promise<{}>}
|
|
445
463
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
446
464
|
*/
|
|
447
|
-
productsCategoriesDelete(id: string): Promise<
|
|
465
|
+
productsCategoriesDelete(id: string): Promise<{}>;
|
|
448
466
|
/**
|
|
449
467
|
* Reads one category by its id — the whole row, every column, as it is stored.
|
|
450
468
|
*
|
|
@@ -456,11 +474,11 @@ declare class ProductsCategories {
|
|
|
456
474
|
*
|
|
457
475
|
* @param {string} params.id - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
458
476
|
* @throws {RevenexxException}
|
|
459
|
-
* @returns {Promise<Models.
|
|
477
|
+
* @returns {Promise<Models.Categories>}
|
|
460
478
|
*/
|
|
461
479
|
productsCategoriesGet(params: {
|
|
462
480
|
id: string;
|
|
463
|
-
}): Promise<Models.
|
|
481
|
+
}): Promise<Models.Categories>;
|
|
464
482
|
/**
|
|
465
483
|
* Reads one category by its id — the whole row, every column, as it is stored.
|
|
466
484
|
*
|
|
@@ -472,10 +490,10 @@ declare class ProductsCategories {
|
|
|
472
490
|
*
|
|
473
491
|
* @param {string} id - The `categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/categories`. An id no categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
474
492
|
* @throws {RevenexxException}
|
|
475
|
-
* @returns {Promise<Models.
|
|
493
|
+
* @returns {Promise<Models.Categories>}
|
|
476
494
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
477
495
|
*/
|
|
478
|
-
productsCategoriesGet(id: string): Promise<Models.
|
|
496
|
+
productsCategoriesGet(id: string): Promise<Models.Categories>;
|
|
479
497
|
/**
|
|
480
498
|
* Updates one category by id. A partial patch: the body names only the columns to change and every column it leaves out keeps its current value, so there is no read-modify-write and no way to blank a field by forgetting it.
|
|
481
499
|
*
|
|
@@ -494,7 +512,7 @@ declare class ProductsCategories {
|
|
|
494
512
|
* @param {string} params.rulesComputedAt - When the rule last ran TO COMPLETION and its memberships were synced. Null means no pass has ever finished — a recompute is chunked, so a half-finished pass leaves this untouched.
|
|
495
513
|
* @param {object} params.values - Whatever this catalog keeps on a category beyond the model — the keys belong to the tenant, not to this app, and nothing here reads them.
|
|
496
514
|
* @throws {RevenexxException}
|
|
497
|
-
* @returns {Promise<Models.
|
|
515
|
+
* @returns {Promise<Models.Categories>}
|
|
498
516
|
*/
|
|
499
517
|
productsCategoriesUpdate(params: {
|
|
500
518
|
id: string;
|
|
@@ -507,7 +525,7 @@ declare class ProductsCategories {
|
|
|
507
525
|
rules?: object;
|
|
508
526
|
rulesComputedAt?: string;
|
|
509
527
|
values?: object;
|
|
510
|
-
}): Promise<Models.
|
|
528
|
+
}): Promise<Models.Categories>;
|
|
511
529
|
/**
|
|
512
530
|
* Updates one category by id. A partial patch: the body names only the columns to change and every column it leaves out keeps its current value, so there is no read-modify-write and no way to blank a field by forgetting it.
|
|
513
531
|
*
|
|
@@ -526,10 +544,10 @@ declare class ProductsCategories {
|
|
|
526
544
|
* @param {string} rulesComputedAt - When the rule last ran TO COMPLETION and its memberships were synced. Null means no pass has ever finished — a recompute is chunked, so a half-finished pass leaves this untouched.
|
|
527
545
|
* @param {object} values - Whatever this catalog keeps on a category beyond the model — the keys belong to the tenant, not to this app, and nothing here reads them.
|
|
528
546
|
* @throws {RevenexxException}
|
|
529
|
-
* @returns {Promise<Models.
|
|
547
|
+
* @returns {Promise<Models.Categories>}
|
|
530
548
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
531
549
|
*/
|
|
532
|
-
productsCategoriesUpdate(id: string, code?: string, labels?: object, parentId?: string, xpath?: string, position?: number, ruleMatch?: CategoriesRuleMatch, rules?: object, rulesComputedAt?: string, values?: object): Promise<Models.
|
|
550
|
+
productsCategoriesUpdate(id: string, code?: string, labels?: object, parentId?: string, xpath?: string, position?: number, ruleMatch?: CategoriesRuleMatch, rules?: object, rulesComputedAt?: string, values?: object): Promise<Models.Categories>;
|
|
533
551
|
/**
|
|
534
552
|
* One membership: this product is filed in this category. `source` says how it got there — `manual` is hand-picked, `rule` was materialized by a category rule — and the two never touch each other: a recompute only ever inserts and deletes `rule` rows, so a hand-picked membership survives every pass. `POST /products/{id}/categories` is the friendlier way to create one, because it takes the product from the path and answers with the category code and the SKU.
|
|
535
553
|
*
|
|
@@ -593,14 +611,14 @@ declare class ProductsCategories {
|
|
|
593
611
|
* @param {number} params.position - Sort order of this product inside the category.
|
|
594
612
|
* @param {ProductCategoriesSource} params.source - How the membership came about: 'manual' is hand-picked, 'rule' was materialized by a category rule. The two never touch each other — a recompute only ever inserts and deletes `rule` rows, so a hand-picked membership survives every pass.
|
|
595
613
|
* @throws {RevenexxException}
|
|
596
|
-
* @returns {Promise<Models.
|
|
614
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
597
615
|
*/
|
|
598
616
|
productsProductCategoriesCreate(params: {
|
|
599
617
|
categoryId: string;
|
|
600
618
|
productId: string;
|
|
601
619
|
position?: number;
|
|
602
620
|
source?: ProductCategoriesSource;
|
|
603
|
-
}): Promise<Models.
|
|
621
|
+
}): Promise<Models.ProductCategories>;
|
|
604
622
|
/**
|
|
605
623
|
* Creates one product category membership and answers 201 with the stored row, including the id and the timestamps the database filled in — a client never sends an id, it reads one back and uses it in the path of every later call.
|
|
606
624
|
*
|
|
@@ -613,10 +631,10 @@ declare class ProductsCategories {
|
|
|
613
631
|
* @param {number} position - Sort order of this product inside the category.
|
|
614
632
|
* @param {ProductCategoriesSource} source - How the membership came about: 'manual' is hand-picked, 'rule' was materialized by a category rule. The two never touch each other — a recompute only ever inserts and deletes `rule` rows, so a hand-picked membership survives every pass.
|
|
615
633
|
* @throws {RevenexxException}
|
|
616
|
-
* @returns {Promise<Models.
|
|
634
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
617
635
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
618
636
|
*/
|
|
619
|
-
productsProductCategoriesCreate(categoryId: string, productId: string, position?: number, source?: ProductCategoriesSource): Promise<Models.
|
|
637
|
+
productsProductCategoriesCreate(categoryId: string, productId: string, position?: number, source?: ProductCategoriesSource): Promise<Models.ProductCategories>;
|
|
620
638
|
/**
|
|
621
639
|
* Deletes one product category membership by id. It is a hard delete — the row is gone, and the answer is a confirmation rather than a result to branch on.
|
|
622
640
|
*
|
|
@@ -626,11 +644,11 @@ declare class ProductsCategories {
|
|
|
626
644
|
*
|
|
627
645
|
* @param {string} params.id - The `product_categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/product_categories`. An id no product categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
628
646
|
* @throws {RevenexxException}
|
|
629
|
-
* @returns {Promise<
|
|
647
|
+
* @returns {Promise<{}>}
|
|
630
648
|
*/
|
|
631
649
|
productsProductCategoriesDelete(params: {
|
|
632
650
|
id: string;
|
|
633
|
-
}): Promise<
|
|
651
|
+
}): Promise<{}>;
|
|
634
652
|
/**
|
|
635
653
|
* Deletes one product category membership by id. It is a hard delete — the row is gone, and the answer is a confirmation rather than a result to branch on.
|
|
636
654
|
*
|
|
@@ -640,10 +658,10 @@ declare class ProductsCategories {
|
|
|
640
658
|
*
|
|
641
659
|
* @param {string} id - The `product_categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/product_categories`. An id no product categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
642
660
|
* @throws {RevenexxException}
|
|
643
|
-
* @returns {Promise<
|
|
661
|
+
* @returns {Promise<{}>}
|
|
644
662
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
645
663
|
*/
|
|
646
|
-
productsProductCategoriesDelete(id: string): Promise<
|
|
664
|
+
productsProductCategoriesDelete(id: string): Promise<{}>;
|
|
647
665
|
/**
|
|
648
666
|
* Reads one product category membership by its id — the whole row, every column, as it is stored.
|
|
649
667
|
*
|
|
@@ -655,11 +673,11 @@ declare class ProductsCategories {
|
|
|
655
673
|
*
|
|
656
674
|
* @param {string} params.id - The `product_categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/product_categories`. An id no product categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
657
675
|
* @throws {RevenexxException}
|
|
658
|
-
* @returns {Promise<Models.
|
|
676
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
659
677
|
*/
|
|
660
678
|
productsProductCategoriesGet(params: {
|
|
661
679
|
id: string;
|
|
662
|
-
}): Promise<Models.
|
|
680
|
+
}): Promise<Models.ProductCategories>;
|
|
663
681
|
/**
|
|
664
682
|
* Reads one product category membership by its id — the whole row, every column, as it is stored.
|
|
665
683
|
*
|
|
@@ -671,10 +689,10 @@ declare class ProductsCategories {
|
|
|
671
689
|
*
|
|
672
690
|
* @param {string} id - The `product_categories` row to address, by id. It names a row THIS TENANT holds, so no example is published — a uuid this app invented would document a call that answers 404, and a real one would be another tenant's data. Read one from `GET /v1/products/product_categories`. An id no product categorie of this tenant carries answers 404; a malformed one answers 400 before the route is reached.
|
|
673
691
|
* @throws {RevenexxException}
|
|
674
|
-
* @returns {Promise<Models.
|
|
692
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
675
693
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
676
694
|
*/
|
|
677
|
-
productsProductCategoriesGet(id: string): Promise<Models.
|
|
695
|
+
productsProductCategoriesGet(id: string): Promise<Models.ProductCategories>;
|
|
678
696
|
/**
|
|
679
697
|
* Updates one product category membership by id. A partial patch: the body names only the columns to change and every column it leaves out keeps its current value, so there is no read-modify-write and no way to blank a field by forgetting it.
|
|
680
698
|
*
|
|
@@ -688,7 +706,7 @@ declare class ProductsCategories {
|
|
|
688
706
|
* @param {string} params.productId - The product filed into the category. Deleting the product deletes the membership with it.
|
|
689
707
|
* @param {ProductCategoriesSource} params.source - How the membership came about: 'manual' is hand-picked, 'rule' was materialized by a category rule. The two never touch each other — a recompute only ever inserts and deletes `rule` rows, so a hand-picked membership survives every pass.
|
|
690
708
|
* @throws {RevenexxException}
|
|
691
|
-
* @returns {Promise<Models.
|
|
709
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
692
710
|
*/
|
|
693
711
|
productsProductCategoriesUpdate(params: {
|
|
694
712
|
id: string;
|
|
@@ -696,7 +714,7 @@ declare class ProductsCategories {
|
|
|
696
714
|
position?: number;
|
|
697
715
|
productId?: string;
|
|
698
716
|
source?: ProductCategoriesSource;
|
|
699
|
-
}): Promise<Models.
|
|
717
|
+
}): Promise<Models.ProductCategories>;
|
|
700
718
|
/**
|
|
701
719
|
* Updates one product category membership by id. A partial patch: the body names only the columns to change and every column it leaves out keeps its current value, so there is no read-modify-write and no way to blank a field by forgetting it.
|
|
702
720
|
*
|
|
@@ -710,10 +728,10 @@ declare class ProductsCategories {
|
|
|
710
728
|
* @param {string} productId - The product filed into the category. Deleting the product deletes the membership with it.
|
|
711
729
|
* @param {ProductCategoriesSource} source - How the membership came about: 'manual' is hand-picked, 'rule' was materialized by a category rule. The two never touch each other — a recompute only ever inserts and deletes `rule` rows, so a hand-picked membership survives every pass.
|
|
712
730
|
* @throws {RevenexxException}
|
|
713
|
-
* @returns {Promise<Models.
|
|
731
|
+
* @returns {Promise<Models.ProductCategories>}
|
|
714
732
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
715
733
|
*/
|
|
716
|
-
productsProductCategoriesUpdate(id: string, categoryId?: string, position?: number, productId?: string, source?: ProductCategoriesSource): Promise<Models.
|
|
734
|
+
productsProductCategoriesUpdate(id: string, categoryId?: string, position?: number, productId?: string, source?: ProductCategoriesSource): Promise<Models.ProductCategories>;
|
|
717
735
|
/**
|
|
718
736
|
* Files one product into one category by hand, and the membership is always `source: 'manual'` — a rule recompute never deletes or shadows it. product_categories holds 28 758 rows and had no write surface that named the product it was filing. This takes the product from the route and the category from the body, which is what a bulk 'add the selected products to …' needs. The membership is always source='manual', so a rule recompute never deletes or shadows it.
|
|
719
737
|
*
|
|
@@ -721,13 +739,13 @@ declare class ProductsCategories {
|
|
|
721
739
|
* @param {string} params.categoryId - The category to file the product into.
|
|
722
740
|
* @param {number} params.position - Sort order inside the category. Default 0.
|
|
723
741
|
* @throws {RevenexxException}
|
|
724
|
-
* @returns {Promise<
|
|
742
|
+
* @returns {Promise<{}>}
|
|
725
743
|
*/
|
|
726
744
|
productsCategoriesAssign(params: {
|
|
727
745
|
id: string;
|
|
728
746
|
categoryId: string;
|
|
729
747
|
position?: number;
|
|
730
|
-
}): Promise<
|
|
748
|
+
}): Promise<{}>;
|
|
731
749
|
/**
|
|
732
750
|
* Files one product into one category by hand, and the membership is always `source: 'manual'` — a rule recompute never deletes or shadows it. product_categories holds 28 758 rows and had no write surface that named the product it was filing. This takes the product from the route and the category from the body, which is what a bulk 'add the selected products to …' needs. The membership is always source='manual', so a rule recompute never deletes or shadows it.
|
|
733
751
|
*
|
|
@@ -735,10 +753,10 @@ declare class ProductsCategories {
|
|
|
735
753
|
* @param {string} categoryId - The category to file the product into.
|
|
736
754
|
* @param {number} position - Sort order inside the category. Default 0.
|
|
737
755
|
* @throws {RevenexxException}
|
|
738
|
-
* @returns {Promise<
|
|
756
|
+
* @returns {Promise<{}>}
|
|
739
757
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
740
758
|
*/
|
|
741
|
-
productsCategoriesAssign(id: string, categoryId: string, position?: number): Promise<
|
|
759
|
+
productsCategoriesAssign(id: string, categoryId: string, position?: number): Promise<{}>;
|
|
742
760
|
}
|
|
743
761
|
|
|
744
762
|
export { ProductsCategories };
|