@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
|
@@ -8,6 +8,15 @@ import '../query.mjs';
|
|
|
8
8
|
import '../enums/address-type-row-tone.mjs';
|
|
9
9
|
import '../enums/address-type-row-create-request-tone.mjs';
|
|
10
10
|
import '../enums/address-type-row-update-request-tone.mjs';
|
|
11
|
+
import '../enums/approval-rule-approver-type.mjs';
|
|
12
|
+
import '../enums/approval-rule-condition.mjs';
|
|
13
|
+
import '../enums/approval-rule-effect.mjs';
|
|
14
|
+
import '../enums/approval-rule-create-request-approver-type.mjs';
|
|
15
|
+
import '../enums/approval-rule-create-request-condition.mjs';
|
|
16
|
+
import '../enums/approval-rule-create-request-effect.mjs';
|
|
17
|
+
import '../enums/approval-rule-update-request-approver-type.mjs';
|
|
18
|
+
import '../enums/approval-rule-update-request-condition.mjs';
|
|
19
|
+
import '../enums/approval-rule-update-request-effect.mjs';
|
|
11
20
|
import '../enums/assets-source.mjs';
|
|
12
21
|
import '../enums/attribute-value-bucket.mjs';
|
|
13
22
|
import '../enums/auth-mail-source.mjs';
|
|
@@ -119,6 +128,8 @@ import '../enums/payment-term-tone.mjs';
|
|
|
119
128
|
import '../enums/payment-term-create-request-tone.mjs';
|
|
120
129
|
import '../enums/payment-term-update-request-tone.mjs';
|
|
121
130
|
import '../enums/payment-vocabulary-tone.mjs';
|
|
131
|
+
import '../enums/pending-approval-approver-type.mjs';
|
|
132
|
+
import '../enums/pending-approval-status.mjs';
|
|
122
133
|
import '../enums/price-ending-rule.mjs';
|
|
123
134
|
import '../enums/price-entries-adjust-response-rounding.mjs';
|
|
124
135
|
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';
|
|
@@ -245,7 +263,7 @@ declare class Forms {
|
|
|
245
263
|
* @param {number} params.offset - How many matching rows to skip. Page N is `offset = (N - 1) * limit`; `page.hasMore` says whether there is a next one.
|
|
246
264
|
* @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. Anything else is refused with 400.
|
|
247
265
|
* @throws {RevenexxException}
|
|
248
|
-
* @returns {Promise<
|
|
266
|
+
* @returns {Promise<{}>}
|
|
249
267
|
*/
|
|
250
268
|
formsList(params?: {
|
|
251
269
|
id?: string;
|
|
@@ -257,7 +275,7 @@ declare class Forms {
|
|
|
257
275
|
limit?: number;
|
|
258
276
|
offset?: number;
|
|
259
277
|
order?: string;
|
|
260
|
-
}): Promise<
|
|
278
|
+
}): Promise<{}>;
|
|
261
279
|
/**
|
|
262
280
|
* The catalogue of forms this tenant has authored, a page at a time. A row is the whole form — `definition`, `settings`, `status`, `slug` — so a list read is not a summary view that has to be followed by a read per row.
|
|
263
281
|
*
|
|
@@ -275,10 +293,10 @@ declare class Forms {
|
|
|
275
293
|
* @param {number} offset - How many matching rows to skip. Page N is `offset = (N - 1) * limit`; `page.hasMore` says whether there is a next one.
|
|
276
294
|
* @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. Anything else is refused with 400.
|
|
277
295
|
* @throws {RevenexxException}
|
|
278
|
-
* @returns {Promise<
|
|
296
|
+
* @returns {Promise<{}>}
|
|
279
297
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
280
298
|
*/
|
|
281
|
-
formsList(id?: string, name?: string, slug?: string, status?: FormStatus, createdAt?: string, updatedAt?: string, limit?: number, offset?: number, order?: string): Promise<
|
|
299
|
+
formsList(id?: string, name?: string, slug?: string, status?: FormStatus, createdAt?: string, updatedAt?: string, limit?: number, offset?: number, order?: string): Promise<{}>;
|
|
282
300
|
/**
|
|
283
301
|
* A form is born a `draft` and stays off the storefront until somebody moves it to `live`, so creating one is safe: the cover BFF resolves live forms only, and nothing renders until the status says it may. `definition` may be omitted entirely — the row is then the empty shell the Form Builder fills in.
|
|
284
302
|
*
|
|
@@ -299,7 +317,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
299
317
|
* @param {object} params.settings - Submit label, success message, per-form notify email, post-submit actions, translations — see the `FormSettings` schema for every key that is read. Unconstrained jsonb on the way in: nothing here is required and no key is refused.
|
|
300
318
|
* @param {FormStatus} params.status - Lifecycle. `draft` while it is being built; `live` once the storefront may render it — the cover BFF resolves live forms only, so a draft is a 404 on the storefront and never a broken page; `archived` for a form that is kept for its submissions but no longer offered. Default 'draft'.
|
|
301
319
|
* @throws {RevenexxException}
|
|
302
|
-
* @returns {Promise<Models.
|
|
320
|
+
* @returns {Promise<Models.Form>}
|
|
303
321
|
*/
|
|
304
322
|
formsCreate(params: {
|
|
305
323
|
name: string;
|
|
@@ -308,7 +326,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
308
326
|
metadata?: object;
|
|
309
327
|
settings?: object;
|
|
310
328
|
status?: FormStatus;
|
|
311
|
-
}): Promise<Models.
|
|
329
|
+
}): Promise<Models.Form>;
|
|
312
330
|
/**
|
|
313
331
|
* A form is born a `draft` and stays off the storefront until somebody moves it to `live`, so creating one is safe: the cover BFF resolves live forms only, and nothing renders until the status says it may. `definition` may be omitted entirely — the row is then the empty shell the Form Builder fills in.
|
|
314
332
|
*
|
|
@@ -329,10 +347,10 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
329
347
|
* @param {object} settings - Submit label, success message, per-form notify email, post-submit actions, translations — see the `FormSettings` schema for every key that is read. Unconstrained jsonb on the way in: nothing here is required and no key is refused.
|
|
330
348
|
* @param {FormStatus} status - Lifecycle. `draft` while it is being built; `live` once the storefront may render it — the cover BFF resolves live forms only, so a draft is a 404 on the storefront and never a broken page; `archived` for a form that is kept for its submissions but no longer offered. Default 'draft'.
|
|
331
349
|
* @throws {RevenexxException}
|
|
332
|
-
* @returns {Promise<Models.
|
|
350
|
+
* @returns {Promise<Models.Form>}
|
|
333
351
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
334
352
|
*/
|
|
335
|
-
formsCreate(name: string, slug: string, definition?: object[], metadata?: object, settings?: object, status?: FormStatus): Promise<Models.
|
|
353
|
+
formsCreate(name: string, slug: string, definition?: object[], metadata?: object, settings?: object, status?: FormStatus): Promise<Models.Form>;
|
|
336
354
|
/**
|
|
337
355
|
* Every tenant starts with one sample form so the Form Builder is never empty and there is a live render and submit target from the first minute — the `contact` slug the read examples throughout this document resolve against.
|
|
338
356
|
*
|
|
@@ -362,7 +380,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
362
380
|
* @param {number} params.offset - How many matching rows to skip. Page N is `offset = (N - 1) * limit`; `page.hasMore` says whether there is a next one.
|
|
363
381
|
* @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. Anything else is refused with 400.
|
|
364
382
|
* @throws {RevenexxException}
|
|
365
|
-
* @returns {Promise<
|
|
383
|
+
* @returns {Promise<{}>}
|
|
366
384
|
*/
|
|
367
385
|
formsSubmissionsList(params?: {
|
|
368
386
|
id?: string;
|
|
@@ -375,7 +393,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
375
393
|
limit?: number;
|
|
376
394
|
offset?: number;
|
|
377
395
|
order?: string;
|
|
378
|
-
}): Promise<
|
|
396
|
+
}): Promise<{}>;
|
|
379
397
|
/**
|
|
380
398
|
* The inbox: every submission this tenant has received, a page at a time. A row is the whole submission, `data` included, so the list is the inbox and the detail view at once — nothing has to be fetched per row to show what somebody wrote. Treat all of it as END-USER data.
|
|
381
399
|
*
|
|
@@ -394,10 +412,10 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
394
412
|
* @param {number} offset - How many matching rows to skip. Page N is `offset = (N - 1) * limit`; `page.hasMore` says whether there is a next one.
|
|
395
413
|
* @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. Anything else is refused with 400.
|
|
396
414
|
* @throws {RevenexxException}
|
|
397
|
-
* @returns {Promise<
|
|
415
|
+
* @returns {Promise<{}>}
|
|
398
416
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
399
417
|
*/
|
|
400
|
-
formsSubmissionsList(id?: string, formId?: string, formSlug?: string, source?: string, status?: FormSubmissionStatus, createdAt?: string, updatedAt?: string, limit?: number, offset?: number, order?: string): Promise<
|
|
418
|
+
formsSubmissionsList(id?: string, formId?: string, formSlug?: string, source?: string, status?: FormSubmissionStatus, createdAt?: string, updatedAt?: string, limit?: number, offset?: number, order?: string): Promise<{}>;
|
|
401
419
|
/**
|
|
402
420
|
* The storefront's path, and the moment a lead enters the platform. A stored submission emits `form.submitted` onto the tenant event bus with the row itself as the payload — that is the event an Integration Studio workflow or a notification email listens to, and it is the only event this app raises about a submission. A call that is refused therefore leaves no trace anywhere: no row, and no automation that ever hears about it.
|
|
403
421
|
*
|
|
@@ -418,7 +436,7 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
418
436
|
* @param {string} params.source - Where the submission came from. The storefront sends the `window.location.pathname` of the page that carried the form, so this is normally a path rather than an absolute URL; any other surface (an app, an import) puts its own name here. Null when the caller sent none.
|
|
419
437
|
* @param {FormSubmissionStatus} params.status - Inbox triage. `new` until somebody opens it, then `read`, and `archived` once it is dealt with. `spam` is set by code in exactly one place — the honeypot, and only while the tenant's spam_handling is 'flag'; under 'reject' the submission is never stored at all. Default 'new'. A create may set it — an inbox importer records a submission that is already read — but nothing needs to: omit it and the row is 'new'.
|
|
420
438
|
* @throws {RevenexxException}
|
|
421
|
-
* @returns {Promise<Models.
|
|
439
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
422
440
|
*/
|
|
423
441
|
formsSubmissionsCreate(params: {
|
|
424
442
|
data: object;
|
|
@@ -427,7 +445,7 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
427
445
|
metadata?: object;
|
|
428
446
|
source?: string;
|
|
429
447
|
status?: FormSubmissionStatus;
|
|
430
|
-
}): Promise<Models.
|
|
448
|
+
}): Promise<Models.FormSubmission>;
|
|
431
449
|
/**
|
|
432
450
|
* The storefront's path, and the moment a lead enters the platform. A stored submission emits `form.submitted` onto the tenant event bus with the row itself as the payload — that is the event an Integration Studio workflow or a notification email listens to, and it is the only event this app raises about a submission. A call that is refused therefore leaves no trace anywhere: no row, and no automation that ever hears about it.
|
|
433
451
|
*
|
|
@@ -448,10 +466,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
448
466
|
* @param {string} source - Where the submission came from. The storefront sends the `window.location.pathname` of the page that carried the form, so this is normally a path rather than an absolute URL; any other surface (an app, an import) puts its own name here. Null when the caller sent none.
|
|
449
467
|
* @param {FormSubmissionStatus} status - Inbox triage. `new` until somebody opens it, then `read`, and `archived` once it is dealt with. `spam` is set by code in exactly one place — the honeypot, and only while the tenant's spam_handling is 'flag'; under 'reject' the submission is never stored at all. Default 'new'. A create may set it — an inbox importer records a submission that is already read — but nothing needs to: omit it and the row is 'new'.
|
|
450
468
|
* @throws {RevenexxException}
|
|
451
|
-
* @returns {Promise<Models.
|
|
469
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
452
470
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
453
471
|
*/
|
|
454
|
-
formsSubmissionsCreate(data: object, formId: string, formSlug?: string, metadata?: object, source?: string, status?: FormSubmissionStatus): Promise<Models.
|
|
472
|
+
formsSubmissionsCreate(data: object, formId: string, formSlug?: string, metadata?: object, source?: string, status?: FormSubmissionStatus): Promise<Models.FormSubmission>;
|
|
455
473
|
/**
|
|
456
474
|
* The retention sweep. It deletes submissions the tenant has stopped promising to keep — everything older than `submission_retention_days` — and it is the one route in this app that reads that promise at all.
|
|
457
475
|
*
|
|
@@ -468,14 +486,14 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
468
486
|
* @param {number} params.olderThanDays - Age threshold. Omit to use the retention floor. A value BELOW the floor is raised to it — the setting is the floor, not a default, and the floor is the LONGEST submission_retention_days configured anywhere in the tenant (see the operation description).
|
|
469
487
|
* @param {FormsSubmissionsPruneStatus} params.status - Narrow the sweep to one inbox status, e.g. 'spam'.
|
|
470
488
|
* @throws {RevenexxException}
|
|
471
|
-
* @returns {Promise<Models.
|
|
489
|
+
* @returns {Promise<Models.FormSubmissionPruneResult>}
|
|
472
490
|
*/
|
|
473
491
|
formsSubmissionsPrune(params?: {
|
|
474
492
|
dryRun?: boolean;
|
|
475
493
|
formSlug?: string;
|
|
476
494
|
olderThanDays?: number;
|
|
477
495
|
status?: FormsSubmissionsPruneStatus;
|
|
478
|
-
}): Promise<Models.
|
|
496
|
+
}): Promise<Models.FormSubmissionPruneResult>;
|
|
479
497
|
/**
|
|
480
498
|
* The retention sweep. It deletes submissions the tenant has stopped promising to keep — everything older than `submission_retention_days` — and it is the one route in this app that reads that promise at all.
|
|
481
499
|
*
|
|
@@ -492,10 +510,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
492
510
|
* @param {number} olderThanDays - Age threshold. Omit to use the retention floor. A value BELOW the floor is raised to it — the setting is the floor, not a default, and the floor is the LONGEST submission_retention_days configured anywhere in the tenant (see the operation description).
|
|
493
511
|
* @param {FormsSubmissionsPruneStatus} status - Narrow the sweep to one inbox status, e.g. 'spam'.
|
|
494
512
|
* @throws {RevenexxException}
|
|
495
|
-
* @returns {Promise<Models.
|
|
513
|
+
* @returns {Promise<Models.FormSubmissionPruneResult>}
|
|
496
514
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
497
515
|
*/
|
|
498
|
-
formsSubmissionsPrune(dryRun?: boolean, formSlug?: string, olderThanDays?: number, status?: FormsSubmissionsPruneStatus): Promise<Models.
|
|
516
|
+
formsSubmissionsPrune(dryRun?: boolean, formSlug?: string, olderThanDays?: number, status?: FormsSubmissionsPruneStatus): Promise<Models.FormSubmissionPruneResult>;
|
|
499
517
|
/**
|
|
500
518
|
* Removes one submission permanently. There is no soft delete anywhere in this app — no `deleted_at`, no trash, no undo — so the row and the end-user data in it are gone when this answers.
|
|
501
519
|
*
|
|
@@ -505,11 +523,11 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
505
523
|
*
|
|
506
524
|
* @param {string} params.id - The submission, by id.
|
|
507
525
|
* @throws {RevenexxException}
|
|
508
|
-
* @returns {Promise<Models.
|
|
526
|
+
* @returns {Promise<Models.FormSubmissionDeleteResult>}
|
|
509
527
|
*/
|
|
510
528
|
formsSubmissionsDelete(params: {
|
|
511
529
|
id: string;
|
|
512
|
-
}): Promise<Models.
|
|
530
|
+
}): Promise<Models.FormSubmissionDeleteResult>;
|
|
513
531
|
/**
|
|
514
532
|
* Removes one submission permanently. There is no soft delete anywhere in this app — no `deleted_at`, no trash, no undo — so the row and the end-user data in it are gone when this answers.
|
|
515
533
|
*
|
|
@@ -519,10 +537,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
519
537
|
*
|
|
520
538
|
* @param {string} id - The submission, by id.
|
|
521
539
|
* @throws {RevenexxException}
|
|
522
|
-
* @returns {Promise<Models.
|
|
540
|
+
* @returns {Promise<Models.FormSubmissionDeleteResult>}
|
|
523
541
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
524
542
|
*/
|
|
525
|
-
formsSubmissionsDelete(id: string): Promise<Models.
|
|
543
|
+
formsSubmissionsDelete(id: string): Promise<Models.FormSubmissionDeleteResult>;
|
|
526
544
|
/**
|
|
527
545
|
* One received submission, whole — the detail view behind a row of `GET /v1/forms/submissions`.
|
|
528
546
|
*
|
|
@@ -534,11 +552,11 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
534
552
|
*
|
|
535
553
|
* @param {string} params.id - The submission, by id.
|
|
536
554
|
* @throws {RevenexxException}
|
|
537
|
-
* @returns {Promise<Models.
|
|
555
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
538
556
|
*/
|
|
539
557
|
formsSubmissionsGet(params: {
|
|
540
558
|
id: string;
|
|
541
|
-
}): Promise<Models.
|
|
559
|
+
}): Promise<Models.FormSubmission>;
|
|
542
560
|
/**
|
|
543
561
|
* One received submission, whole — the detail view behind a row of `GET /v1/forms/submissions`.
|
|
544
562
|
*
|
|
@@ -550,10 +568,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
550
568
|
*
|
|
551
569
|
* @param {string} id - The submission, by id.
|
|
552
570
|
* @throws {RevenexxException}
|
|
553
|
-
* @returns {Promise<Models.
|
|
571
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
554
572
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
555
573
|
*/
|
|
556
|
-
formsSubmissionsGet(id: string): Promise<Models.
|
|
574
|
+
formsSubmissionsGet(id: string): Promise<Models.FormSubmission>;
|
|
557
575
|
/**
|
|
558
576
|
* Triage, not correction. What this route is FOR is moving the inbox `status` — 'new' to 'read' as somebody opens the lead, 'archived' once it is dealt with, 'spam' for what the honeypot did not catch — and stamping whatever an integration keeps in `metadata`.
|
|
559
577
|
*
|
|
@@ -575,7 +593,7 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
575
593
|
* @param {string} params.source - Where the submission came from. The storefront sends the `window.location.pathname` of the page that carried the form, so this is normally a path rather than an absolute URL; any other surface (an app, an import) puts its own name here. Null when the caller sent none.
|
|
576
594
|
* @param {FormSubmissionStatus} params.status - Inbox triage. `new` until somebody opens it, then `read`, and `archived` once it is dealt with. `spam` is set by code in exactly one place — the honeypot, and only while the tenant's spam_handling is 'flag'; under 'reject' the submission is never stored at all. Default 'new'. A create may set it — an inbox importer records a submission that is already read — but nothing needs to: omit it and the row is 'new'.
|
|
577
595
|
* @throws {RevenexxException}
|
|
578
|
-
* @returns {Promise<Models.
|
|
596
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
579
597
|
*/
|
|
580
598
|
formsSubmissionsUpdate(params: {
|
|
581
599
|
id: string;
|
|
@@ -585,7 +603,7 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
585
603
|
metadata?: object;
|
|
586
604
|
source?: string;
|
|
587
605
|
status?: FormSubmissionStatus;
|
|
588
|
-
}): Promise<Models.
|
|
606
|
+
}): Promise<Models.FormSubmission>;
|
|
589
607
|
/**
|
|
590
608
|
* Triage, not correction. What this route is FOR is moving the inbox `status` — 'new' to 'read' as somebody opens the lead, 'archived' once it is dealt with, 'spam' for what the honeypot did not catch — and stamping whatever an integration keeps in `metadata`.
|
|
591
609
|
*
|
|
@@ -607,10 +625,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
607
625
|
* @param {string} source - Where the submission came from. The storefront sends the `window.location.pathname` of the page that carried the form, so this is normally a path rather than an absolute URL; any other surface (an app, an import) puts its own name here. Null when the caller sent none.
|
|
608
626
|
* @param {FormSubmissionStatus} status - Inbox triage. `new` until somebody opens it, then `read`, and `archived` once it is dealt with. `spam` is set by code in exactly one place — the honeypot, and only while the tenant's spam_handling is 'flag'; under 'reject' the submission is never stored at all. Default 'new'. A create may set it — an inbox importer records a submission that is already read — but nothing needs to: omit it and the row is 'new'.
|
|
609
627
|
* @throws {RevenexxException}
|
|
610
|
-
* @returns {Promise<Models.
|
|
628
|
+
* @returns {Promise<Models.FormSubmission>}
|
|
611
629
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
612
630
|
*/
|
|
613
|
-
formsSubmissionsUpdate(id: string, data?: object, formId?: string, formSlug?: string, metadata?: object, source?: string, status?: FormSubmissionStatus): Promise<Models.
|
|
631
|
+
formsSubmissionsUpdate(id: string, data?: object, formId?: string, formSlug?: string, metadata?: object, source?: string, status?: FormSubmissionStatus): Promise<Models.FormSubmission>;
|
|
614
632
|
/**
|
|
615
633
|
* The enums this app publishes, so a client can discover them instead of holding a copy. Names: form-statuses, submission-statuses.
|
|
616
634
|
*
|
|
@@ -631,11 +649,11 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
631
649
|
*
|
|
632
650
|
* @param {FormsVocabulariesGetName} params.name - The vocabulary name — the part after the dot in the qualified id.
|
|
633
651
|
* @throws {RevenexxException}
|
|
634
|
-
* @returns {Promise<Models.
|
|
652
|
+
* @returns {Promise<Models.FormsVocabulary>}
|
|
635
653
|
*/
|
|
636
654
|
formsVocabulariesGet(params: {
|
|
637
655
|
name: FormsVocabulariesGetName;
|
|
638
|
-
}): Promise<Models.
|
|
656
|
+
}): Promise<Models.FormsVocabulary>;
|
|
639
657
|
/**
|
|
640
658
|
* One vocabulary WITH its values: every value the column permits, each carrying the `key` the database stores, the `title` and `description` a human reads, a semantic badge `tone`, and a `final` flag for the values that end the lifecycle. This is the call that fills a select or renders a status badge. Names: form-statuses, submission-statuses.
|
|
641
659
|
*
|
|
@@ -645,10 +663,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
645
663
|
*
|
|
646
664
|
* @param {FormsVocabulariesGetName} name - The vocabulary name — the part after the dot in the qualified id.
|
|
647
665
|
* @throws {RevenexxException}
|
|
648
|
-
* @returns {Promise<Models.
|
|
666
|
+
* @returns {Promise<Models.FormsVocabulary>}
|
|
649
667
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
650
668
|
*/
|
|
651
|
-
formsVocabulariesGet(name: FormsVocabulariesGetName): Promise<Models.
|
|
669
|
+
formsVocabulariesGet(name: FormsVocabulariesGetName): Promise<Models.FormsVocabulary>;
|
|
652
670
|
/**
|
|
653
671
|
* Deleting a form deletes every submission it ever received.
|
|
654
672
|
*
|
|
@@ -664,11 +682,11 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
664
682
|
*
|
|
665
683
|
* @param {string} params.id - The form, by id.
|
|
666
684
|
* @throws {RevenexxException}
|
|
667
|
-
* @returns {Promise<Models.
|
|
685
|
+
* @returns {Promise<Models.FormDeleteResult>}
|
|
668
686
|
*/
|
|
669
687
|
formsDelete(params: {
|
|
670
688
|
id: string;
|
|
671
|
-
}): Promise<Models.
|
|
689
|
+
}): Promise<Models.FormDeleteResult>;
|
|
672
690
|
/**
|
|
673
691
|
* Deleting a form deletes every submission it ever received.
|
|
674
692
|
*
|
|
@@ -684,10 +702,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
684
702
|
*
|
|
685
703
|
* @param {string} id - The form, by id.
|
|
686
704
|
* @throws {RevenexxException}
|
|
687
|
-
* @returns {Promise<Models.
|
|
705
|
+
* @returns {Promise<Models.FormDeleteResult>}
|
|
688
706
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
689
707
|
*/
|
|
690
|
-
formsDelete(id: string): Promise<Models.
|
|
708
|
+
formsDelete(id: string): Promise<Models.FormDeleteResult>;
|
|
691
709
|
/**
|
|
692
710
|
* The whole form: `definition` — the flat FormKit node array the storefront renders verbatim — plus `settings`, `status` and `slug`.
|
|
693
711
|
*
|
|
@@ -697,11 +715,11 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
697
715
|
*
|
|
698
716
|
* @param {string} params.id - The form, by id.
|
|
699
717
|
* @throws {RevenexxException}
|
|
700
|
-
* @returns {Promise<Models.
|
|
718
|
+
* @returns {Promise<Models.Form>}
|
|
701
719
|
*/
|
|
702
720
|
formsGet(params: {
|
|
703
721
|
id: string;
|
|
704
|
-
}): Promise<Models.
|
|
722
|
+
}): Promise<Models.Form>;
|
|
705
723
|
/**
|
|
706
724
|
* The whole form: `definition` — the flat FormKit node array the storefront renders verbatim — plus `settings`, `status` and `slug`.
|
|
707
725
|
*
|
|
@@ -711,10 +729,10 @@ Two values are NOT here: the honeypot field, if the tenant configured one, is st
|
|
|
711
729
|
*
|
|
712
730
|
* @param {string} id - The form, by id.
|
|
713
731
|
* @throws {RevenexxException}
|
|
714
|
-
* @returns {Promise<Models.
|
|
732
|
+
* @returns {Promise<Models.Form>}
|
|
715
733
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
716
734
|
*/
|
|
717
|
-
formsGet(id: string): Promise<Models.
|
|
735
|
+
formsGet(id: string): Promise<Models.Form>;
|
|
718
736
|
/**
|
|
719
737
|
* A partial update over everything a create may set — `definition`, `settings`, `status`, `name`, `slug`, `metadata` — where an omitted field keeps the value it has. It is the write behind the Form Builder's save, and equally behind the one-field change that publishes a form by moving `status` from `draft` to `live`. `updated_at` is stamped on every call, so it is the column an editor sorts by.
|
|
720
738
|
*
|
|
@@ -736,7 +754,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
736
754
|
* @param {string} params.slug - URL-safe identifier, unique per tenant. This is the name a storefront resolves a form by (`GET /v1/forms?slug=contact&status=live&limit=1`), so it is part of the page's contract: changing it changes which form a page renders. Lower-case letters, digits and inner hyphens. Taken already? That is the 409 — one slug answers for one form.
|
|
737
755
|
* @param {FormStatus} params.status - Lifecycle. `draft` while it is being built; `live` once the storefront may render it — the cover BFF resolves live forms only, so a draft is a 404 on the storefront and never a broken page; `archived` for a form that is kept for its submissions but no longer offered. Default 'draft'.
|
|
738
756
|
* @throws {RevenexxException}
|
|
739
|
-
* @returns {Promise<Models.
|
|
757
|
+
* @returns {Promise<Models.Form>}
|
|
740
758
|
*/
|
|
741
759
|
formsUpdate(params: {
|
|
742
760
|
id: string;
|
|
@@ -746,7 +764,7 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
746
764
|
settings?: object;
|
|
747
765
|
slug?: string;
|
|
748
766
|
status?: FormStatus;
|
|
749
|
-
}): Promise<Models.
|
|
767
|
+
}): Promise<Models.Form>;
|
|
750
768
|
/**
|
|
751
769
|
* A partial update over everything a create may set — `definition`, `settings`, `status`, `name`, `slug`, `metadata` — where an omitted field keeps the value it has. It is the write behind the Form Builder's save, and equally behind the one-field change that publishes a form by moving `status` from `draft` to `live`. `updated_at` is stamped on every call, so it is the column an editor sorts by.
|
|
752
770
|
*
|
|
@@ -768,10 +786,10 @@ On the way IN a node is any object: this is unconstrained jsonb, FormKit owns th
|
|
|
768
786
|
* @param {string} slug - URL-safe identifier, unique per tenant. This is the name a storefront resolves a form by (`GET /v1/forms?slug=contact&status=live&limit=1`), so it is part of the page's contract: changing it changes which form a page renders. Lower-case letters, digits and inner hyphens. Taken already? That is the 409 — one slug answers for one form.
|
|
769
787
|
* @param {FormStatus} status - Lifecycle. `draft` while it is being built; `live` once the storefront may render it — the cover BFF resolves live forms only, so a draft is a 404 on the storefront and never a broken page; `archived` for a form that is kept for its submissions but no longer offered. Default 'draft'.
|
|
770
788
|
* @throws {RevenexxException}
|
|
771
|
-
* @returns {Promise<Models.
|
|
789
|
+
* @returns {Promise<Models.Form>}
|
|
772
790
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
773
791
|
*/
|
|
774
|
-
formsUpdate(id: string, definition?: object[], metadata?: object, name?: string, settings?: object, slug?: string, status?: FormStatus): Promise<Models.
|
|
792
|
+
formsUpdate(id: string, definition?: object[], metadata?: object, name?: string, settings?: object, slug?: string, status?: FormStatus): Promise<Models.Form>;
|
|
775
793
|
}
|
|
776
794
|
|
|
777
795
|
export { Forms };
|