@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
|
@@ -4,6 +4,15 @@ import '../query.mjs';
|
|
|
4
4
|
import '../enums/address-type-row-tone.mjs';
|
|
5
5
|
import '../enums/address-type-row-create-request-tone.mjs';
|
|
6
6
|
import '../enums/address-type-row-update-request-tone.mjs';
|
|
7
|
+
import '../enums/approval-rule-approver-type.mjs';
|
|
8
|
+
import '../enums/approval-rule-condition.mjs';
|
|
9
|
+
import '../enums/approval-rule-effect.mjs';
|
|
10
|
+
import '../enums/approval-rule-create-request-approver-type.mjs';
|
|
11
|
+
import '../enums/approval-rule-create-request-condition.mjs';
|
|
12
|
+
import '../enums/approval-rule-create-request-effect.mjs';
|
|
13
|
+
import '../enums/approval-rule-update-request-approver-type.mjs';
|
|
14
|
+
import '../enums/approval-rule-update-request-condition.mjs';
|
|
15
|
+
import '../enums/approval-rule-update-request-effect.mjs';
|
|
7
16
|
import '../enums/assets-source.mjs';
|
|
8
17
|
import '../enums/attribute-value-bucket.mjs';
|
|
9
18
|
import '../enums/auth-mail-source.mjs';
|
|
@@ -117,6 +126,8 @@ import '../enums/payment-term-tone.mjs';
|
|
|
117
126
|
import '../enums/payment-term-create-request-tone.mjs';
|
|
118
127
|
import '../enums/payment-term-update-request-tone.mjs';
|
|
119
128
|
import '../enums/payment-vocabulary-tone.mjs';
|
|
129
|
+
import '../enums/pending-approval-approver-type.mjs';
|
|
130
|
+
import '../enums/pending-approval-status.mjs';
|
|
120
131
|
import '../enums/price-ending-rule.mjs';
|
|
121
132
|
import '../enums/price-entries-adjust-response-rounding.mjs';
|
|
122
133
|
import '../enums/price-entries-adjust-response-rounding-mode.mjs';
|
|
@@ -139,6 +150,11 @@ import '../enums/product-grid-column-source.mjs';
|
|
|
139
150
|
import '../enums/product-label-source.mjs';
|
|
140
151
|
import '../enums/product-label-attribute-source.mjs';
|
|
141
152
|
import '../enums/products-kind.mjs';
|
|
153
|
+
import '../enums/purchase-request-status.mjs';
|
|
154
|
+
import '../enums/purchase-request-event-name.mjs';
|
|
155
|
+
import '../enums/purchase-request-item-type.mjs';
|
|
156
|
+
import '../enums/purchase-request-item-create-request-type.mjs';
|
|
157
|
+
import '../enums/purchase-request-item-update-request-type.mjs';
|
|
142
158
|
import '../enums/reorder-point-source.mjs';
|
|
143
159
|
import '../enums/reservation-status.mjs';
|
|
144
160
|
import '../enums/price-on-request-reason.mjs';
|
|
@@ -176,6 +192,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
|
|
|
176
192
|
import '../enums/shipping-weight-unit-update-request-tone.mjs';
|
|
177
193
|
import '../enums/stock-movement-type.mjs';
|
|
178
194
|
import '../enums/store-asset-request-visibility.mjs';
|
|
195
|
+
import '../enums/submit-item-type.mjs';
|
|
196
|
+
import '../enums/submit-result-outcome.mjs';
|
|
179
197
|
import '../enums/validation-failed-response-status.mjs';
|
|
180
198
|
import '../enums/vocabulary-default-tone.mjs';
|
|
181
199
|
import '../enums/vocabulary-source.mjs';
|
|
@@ -345,13 +363,13 @@ declare class PagesCollaboration {
|
|
|
345
363
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
346
364
|
* @param {string} params.body - The comment, as editor HTML. Replaces the old body completely.
|
|
347
365
|
* @throws {RevenexxException}
|
|
348
|
-
* @returns {Promise<Models.
|
|
366
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
349
367
|
*/
|
|
350
368
|
pagesEditorCommentsUpdate(params: {
|
|
351
369
|
pageId: string;
|
|
352
370
|
uuid: string;
|
|
353
371
|
body: string;
|
|
354
|
-
}): Promise<Models.
|
|
372
|
+
}): Promise<Models.PageCommentList>;
|
|
355
373
|
/**
|
|
356
374
|
* Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.
|
|
357
375
|
*
|
|
@@ -359,32 +377,32 @@ declare class PagesCollaboration {
|
|
|
359
377
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
360
378
|
* @param {string} body - The comment, as editor HTML. Replaces the old body completely.
|
|
361
379
|
* @throws {RevenexxException}
|
|
362
|
-
* @returns {Promise<Models.
|
|
380
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
363
381
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
364
382
|
*/
|
|
365
|
-
pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.
|
|
383
|
+
pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.PageCommentList>;
|
|
366
384
|
/**
|
|
367
385
|
* Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.
|
|
368
386
|
*
|
|
369
387
|
* @param {string} params.pageId - The page being edited.
|
|
370
388
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
371
389
|
* @throws {RevenexxException}
|
|
372
|
-
* @returns {Promise<Models.
|
|
390
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
373
391
|
*/
|
|
374
392
|
pagesEditorCommentsResolve(params: {
|
|
375
393
|
pageId: string;
|
|
376
394
|
uuid: string;
|
|
377
|
-
}): Promise<Models.
|
|
395
|
+
}): Promise<Models.PageCommentList>;
|
|
378
396
|
/**
|
|
379
397
|
* Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.
|
|
380
398
|
*
|
|
381
399
|
* @param {string} pageId - The page being edited.
|
|
382
400
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
383
401
|
* @throws {RevenexxException}
|
|
384
|
-
* @returns {Promise<Models.
|
|
402
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
385
403
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
386
404
|
*/
|
|
387
|
-
pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.
|
|
405
|
+
pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;
|
|
388
406
|
/**
|
|
389
407
|
* A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's "edited" marker, so a call that changes nothing must not move it.
|
|
390
408
|
*
|
|
@@ -392,13 +410,13 @@ declare class PagesCollaboration {
|
|
|
392
410
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
393
411
|
* @param {number} params.taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.
|
|
394
412
|
* @throws {RevenexxException}
|
|
395
|
-
* @returns {Promise<Models.
|
|
413
|
+
* @returns {Promise<Models.PageCommentItem>}
|
|
396
414
|
*/
|
|
397
415
|
pagesEditorCommentsToggleTask(params: {
|
|
398
416
|
pageId: string;
|
|
399
417
|
uuid: string;
|
|
400
418
|
taskIndex: number;
|
|
401
|
-
}): Promise<Models.
|
|
419
|
+
}): Promise<Models.PageCommentItem>;
|
|
402
420
|
/**
|
|
403
421
|
* A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's "edited" marker, so a call that changes nothing must not move it.
|
|
404
422
|
*
|
|
@@ -406,32 +424,32 @@ declare class PagesCollaboration {
|
|
|
406
424
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
407
425
|
* @param {number} taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.
|
|
408
426
|
* @throws {RevenexxException}
|
|
409
|
-
* @returns {Promise<Models.
|
|
427
|
+
* @returns {Promise<Models.PageCommentItem>}
|
|
410
428
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
411
429
|
*/
|
|
412
|
-
pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.
|
|
430
|
+
pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.PageCommentItem>;
|
|
413
431
|
/**
|
|
414
432
|
* Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.
|
|
415
433
|
*
|
|
416
434
|
* @param {string} params.pageId - The page being edited.
|
|
417
435
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
418
436
|
* @throws {RevenexxException}
|
|
419
|
-
* @returns {Promise<Models.
|
|
437
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
420
438
|
*/
|
|
421
439
|
pagesEditorCommentsUnresolve(params: {
|
|
422
440
|
pageId: string;
|
|
423
441
|
uuid: string;
|
|
424
|
-
}): Promise<Models.
|
|
442
|
+
}): Promise<Models.PageCommentList>;
|
|
425
443
|
/**
|
|
426
444
|
* Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.
|
|
427
445
|
*
|
|
428
446
|
* @param {string} pageId - The page being edited.
|
|
429
447
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
430
448
|
* @throws {RevenexxException}
|
|
431
|
-
* @returns {Promise<Models.
|
|
449
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
432
450
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
433
451
|
*/
|
|
434
|
-
pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.
|
|
452
|
+
pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;
|
|
435
453
|
}
|
|
436
454
|
|
|
437
455
|
export { PagesCollaboration };
|
|
@@ -4,6 +4,15 @@ import '../query.js';
|
|
|
4
4
|
import '../enums/address-type-row-tone.js';
|
|
5
5
|
import '../enums/address-type-row-create-request-tone.js';
|
|
6
6
|
import '../enums/address-type-row-update-request-tone.js';
|
|
7
|
+
import '../enums/approval-rule-approver-type.js';
|
|
8
|
+
import '../enums/approval-rule-condition.js';
|
|
9
|
+
import '../enums/approval-rule-effect.js';
|
|
10
|
+
import '../enums/approval-rule-create-request-approver-type.js';
|
|
11
|
+
import '../enums/approval-rule-create-request-condition.js';
|
|
12
|
+
import '../enums/approval-rule-create-request-effect.js';
|
|
13
|
+
import '../enums/approval-rule-update-request-approver-type.js';
|
|
14
|
+
import '../enums/approval-rule-update-request-condition.js';
|
|
15
|
+
import '../enums/approval-rule-update-request-effect.js';
|
|
7
16
|
import '../enums/assets-source.js';
|
|
8
17
|
import '../enums/attribute-value-bucket.js';
|
|
9
18
|
import '../enums/auth-mail-source.js';
|
|
@@ -117,6 +126,8 @@ import '../enums/payment-term-tone.js';
|
|
|
117
126
|
import '../enums/payment-term-create-request-tone.js';
|
|
118
127
|
import '../enums/payment-term-update-request-tone.js';
|
|
119
128
|
import '../enums/payment-vocabulary-tone.js';
|
|
129
|
+
import '../enums/pending-approval-approver-type.js';
|
|
130
|
+
import '../enums/pending-approval-status.js';
|
|
120
131
|
import '../enums/price-ending-rule.js';
|
|
121
132
|
import '../enums/price-entries-adjust-response-rounding.js';
|
|
122
133
|
import '../enums/price-entries-adjust-response-rounding-mode.js';
|
|
@@ -139,6 +150,11 @@ import '../enums/product-grid-column-source.js';
|
|
|
139
150
|
import '../enums/product-label-source.js';
|
|
140
151
|
import '../enums/product-label-attribute-source.js';
|
|
141
152
|
import '../enums/products-kind.js';
|
|
153
|
+
import '../enums/purchase-request-status.js';
|
|
154
|
+
import '../enums/purchase-request-event-name.js';
|
|
155
|
+
import '../enums/purchase-request-item-type.js';
|
|
156
|
+
import '../enums/purchase-request-item-create-request-type.js';
|
|
157
|
+
import '../enums/purchase-request-item-update-request-type.js';
|
|
142
158
|
import '../enums/reorder-point-source.js';
|
|
143
159
|
import '../enums/reservation-status.js';
|
|
144
160
|
import '../enums/price-on-request-reason.js';
|
|
@@ -176,6 +192,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
|
|
|
176
192
|
import '../enums/shipping-weight-unit-update-request-tone.js';
|
|
177
193
|
import '../enums/stock-movement-type.js';
|
|
178
194
|
import '../enums/store-asset-request-visibility.js';
|
|
195
|
+
import '../enums/submit-item-type.js';
|
|
196
|
+
import '../enums/submit-result-outcome.js';
|
|
179
197
|
import '../enums/validation-failed-response-status.js';
|
|
180
198
|
import '../enums/vocabulary-default-tone.js';
|
|
181
199
|
import '../enums/vocabulary-source.js';
|
|
@@ -345,13 +363,13 @@ declare class PagesCollaboration {
|
|
|
345
363
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
346
364
|
* @param {string} params.body - The comment, as editor HTML. Replaces the old body completely.
|
|
347
365
|
* @throws {RevenexxException}
|
|
348
|
-
* @returns {Promise<Models.
|
|
366
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
349
367
|
*/
|
|
350
368
|
pagesEditorCommentsUpdate(params: {
|
|
351
369
|
pageId: string;
|
|
352
370
|
uuid: string;
|
|
353
371
|
body: string;
|
|
354
|
-
}): Promise<Models.
|
|
372
|
+
}): Promise<Models.PageCommentList>;
|
|
355
373
|
/**
|
|
356
374
|
* Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.
|
|
357
375
|
*
|
|
@@ -359,32 +377,32 @@ declare class PagesCollaboration {
|
|
|
359
377
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
360
378
|
* @param {string} body - The comment, as editor HTML. Replaces the old body completely.
|
|
361
379
|
* @throws {RevenexxException}
|
|
362
|
-
* @returns {Promise<Models.
|
|
380
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
363
381
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
364
382
|
*/
|
|
365
|
-
pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.
|
|
383
|
+
pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.PageCommentList>;
|
|
366
384
|
/**
|
|
367
385
|
* Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.
|
|
368
386
|
*
|
|
369
387
|
* @param {string} params.pageId - The page being edited.
|
|
370
388
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
371
389
|
* @throws {RevenexxException}
|
|
372
|
-
* @returns {Promise<Models.
|
|
390
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
373
391
|
*/
|
|
374
392
|
pagesEditorCommentsResolve(params: {
|
|
375
393
|
pageId: string;
|
|
376
394
|
uuid: string;
|
|
377
|
-
}): Promise<Models.
|
|
395
|
+
}): Promise<Models.PageCommentList>;
|
|
378
396
|
/**
|
|
379
397
|
* Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.
|
|
380
398
|
*
|
|
381
399
|
* @param {string} pageId - The page being edited.
|
|
382
400
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
383
401
|
* @throws {RevenexxException}
|
|
384
|
-
* @returns {Promise<Models.
|
|
402
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
385
403
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
386
404
|
*/
|
|
387
|
-
pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.
|
|
405
|
+
pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;
|
|
388
406
|
/**
|
|
389
407
|
* A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's "edited" marker, so a call that changes nothing must not move it.
|
|
390
408
|
*
|
|
@@ -392,13 +410,13 @@ declare class PagesCollaboration {
|
|
|
392
410
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
393
411
|
* @param {number} params.taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.
|
|
394
412
|
* @throws {RevenexxException}
|
|
395
|
-
* @returns {Promise<Models.
|
|
413
|
+
* @returns {Promise<Models.PageCommentItem>}
|
|
396
414
|
*/
|
|
397
415
|
pagesEditorCommentsToggleTask(params: {
|
|
398
416
|
pageId: string;
|
|
399
417
|
uuid: string;
|
|
400
418
|
taskIndex: number;
|
|
401
|
-
}): Promise<Models.
|
|
419
|
+
}): Promise<Models.PageCommentItem>;
|
|
402
420
|
/**
|
|
403
421
|
* A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's "edited" marker, so a call that changes nothing must not move it.
|
|
404
422
|
*
|
|
@@ -406,32 +424,32 @@ declare class PagesCollaboration {
|
|
|
406
424
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
407
425
|
* @param {number} taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.
|
|
408
426
|
* @throws {RevenexxException}
|
|
409
|
-
* @returns {Promise<Models.
|
|
427
|
+
* @returns {Promise<Models.PageCommentItem>}
|
|
410
428
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
411
429
|
*/
|
|
412
|
-
pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.
|
|
430
|
+
pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.PageCommentItem>;
|
|
413
431
|
/**
|
|
414
432
|
* Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.
|
|
415
433
|
*
|
|
416
434
|
* @param {string} params.pageId - The page being edited.
|
|
417
435
|
* @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
418
436
|
* @throws {RevenexxException}
|
|
419
|
-
* @returns {Promise<Models.
|
|
437
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
420
438
|
*/
|
|
421
439
|
pagesEditorCommentsUnresolve(params: {
|
|
422
440
|
pageId: string;
|
|
423
441
|
uuid: string;
|
|
424
|
-
}): Promise<Models.
|
|
442
|
+
}): Promise<Models.PageCommentList>;
|
|
425
443
|
/**
|
|
426
444
|
* Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.
|
|
427
445
|
*
|
|
428
446
|
* @param {string} pageId - The page being edited.
|
|
429
447
|
* @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.
|
|
430
448
|
* @throws {RevenexxException}
|
|
431
|
-
* @returns {Promise<Models.
|
|
449
|
+
* @returns {Promise<Models.PageCommentList>}
|
|
432
450
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
433
451
|
*/
|
|
434
|
-
pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.
|
|
452
|
+
pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;
|
|
435
453
|
}
|
|
436
454
|
|
|
437
455
|
export { PagesCollaboration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/services/pages-collaboration.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAIjE,MAAM,mBAAmB;AAAA,EAG5B,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAqBA,6BACI,kBACG,MACQ;AACX,QAAI;AAEJ,QAAI,CAAC,iBAAkB,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACzG,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,OAAO;AAAA,QACP,YAAY,KAAK,CAAC;AAAA,MACtB;AAAA,IACJ;AAEA,UAAM,QAAQ,OAAO;AACrB,UAAM,aAAa,OAAO;AAG1B,UAAM,UAAU;AAChB,UAAM,aA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;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACvF,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,KAAK,CAAC;AAAA,MAChB;AAAA,IACJ;AAEA,UAAM,SAAS,OAAO;AACtB,UAAM,OAAO,OAAO;AAEpB,QAAI,OAAO,WAAW,aAAa;AAC/B,YAAM,IAAI,kBAAkB,sCAAsC;AAAA,IACtE;AACA,QAAI,OAAO,SAAS,aAAa;AAC7B,YAAM,IAAI,kBAAkB,oCAAoC;AAAA,IACpE;AAEA,UAAM,UAAU,uDAAuD,QAAQ,aAAa,MAAM,EAAE,QAAQ,UAAU,IAAI;AAC1H,UAAM,aAAsB,CAAC;AAC7B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { RevenexxException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\n\nexport class PagesCollaboration {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * The caller's own notifications, newest first, 20 at a time. Paged by an opaque cursor rather than by offset, so new arrivals never shift a page under the reader. It is also the one read in this app that writes: `?markAsRead=true` flags the notifications on the page it just returned as read, which is how a feed that has been looked at empties its badge without a second call — leave it off and reading changes nothing.\n *\n * @param {string} params.after - Continue after this cursor — pass back the `cursor` from the previous page. Omit for the first page. It encodes the last item's timestamp and id, so it is stable while new notifications arrive.\n * @param {string} params.markAsRead - Send the literal `true` to mark the notifications ON THIS PAGE read as a side effect of reading them. Any other value, including `1` and `false`, is accepted and leaves them unread.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsList(params?: { after?: string, markAsRead?: string }): Promise<{}>;\n /**\n * The caller's own notifications, newest first, 20 at a time. Paged by an opaque cursor rather than by offset, so new arrivals never shift a page under the reader. It is also the one read in this app that writes: `?markAsRead=true` flags the notifications on the page it just returned as read, which is how a feed that has been looked at empties its badge without a second call — leave it off and reading changes nothing.\n *\n * @param {string} after - Continue after this cursor — pass back the `cursor` from the previous page. Omit for the first page. It encodes the last item's timestamp and id, so it is stable while new notifications arrive.\n * @param {string} markAsRead - Send the literal `true` to mark the notifications ON THIS PAGE read as a side effect of reading them. Any other value, including `1` and `false`, is accepted and leaves them unread.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorNotificationsList(after?: string, markAsRead?: string): Promise<{}>;\n pagesEditorNotificationsList(\n paramsOrFirst?: { after?: string, markAsRead?: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { after?: string, markAsRead?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { after?: string, markAsRead?: string };\n } else {\n params = {\n after: paramsOrFirst as string,\n markAsRead: rest[0] as string \n };\n }\n \n const after = params.after;\n const markAsRead = params.markAsRead;\n\n\n const apiPath = '/v1/pages/editor/notifications';\n const apiPayload: Payload = {};\n if (typeof after !== 'undefined') {\n apiPayload['after'] = after;\n }\n if (typeof markAsRead !== 'undefined') {\n apiPayload['markAsRead'] = markAsRead;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Empties the badge in one call. Every unread notification of the CURRENT user is flagged read — the user is the one the request's context token names and there is no body with which to name another. Nothing is deleted: `GET /pages/editor/notifications` still returns the same feed, just with `read` set. The answer is the new unread count, so a client can set the badge straight from it without a second read.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsMarkAllRead(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/notifications/mark-all-read';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * The cheap poll behind the badge.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsUnreadCount(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/notifications/unread-count';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * What the @mention picker is filled from. When the identity service cannot be reached this degrades to the authors who have already commented on this tenant's pages rather than answering an error — a mention list that is short is more useful than one that is missing.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorUsers(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/users';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Every comment on the page in one flat list, oldest first, roots and replies together and resolved threads included — there is no filter and no paging, because the editor nests and filters them itself from `parentUuid` and pins each root to its blocks with `blockUuids`. Comments hang off the PAGE, not off a revision or an edit state, so publishing and reverting leave them standing; that is what makes them usable as a review trail across several rounds of edits.\n *\n * @param {string} params.pageId - The page being edited.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsList(params: { pageId: string }): Promise<Models.PageCommentList>;\n /**\n * Every comment on the page in one flat list, oldest first, roots and replies together and resolved threads included — there is no filter and no paging, because the editor nests and filters them itself from `parentUuid` and pins each root to its blocks with `blockUuids`. Comments hang off the PAGE, not off a revision or an edit state, so publishing and reverting leave them standing; that is what makes them usable as a review trail across several rounds of edits.\n *\n * @param {string} pageId - The page being edited.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsList(pageId: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsList(\n paramsOrFirst: { pageId: string } | string \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string };\n } else {\n params = {\n pageId: paramsOrFirst as string \n };\n }\n \n const pageId = params.pageId;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments'.replace('{page_id}', pageId);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * The same route writes both kinds, and which one you get is decided by the body: `blockUuids` starts a new thread pinned to those blocks, `parentUuid` hangs a reply under an existing root. Everyone named with an @mention in the body is notified, and on a reply so is everybody already in the thread — the actor never notifies themselves.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.body - The comment, as editor HTML. `<span data-type=\"mention\" data-id=\"USER_ID\">` is what this app reads to decide whom to notify; `<li data-type=\"taskItem\" data-checked=\"false\">` makes a checkbox the toggle-task route can flip.\n * @param {string[]} params.blockUuids - The blocks this thread is about, so the editor can draw a marker next to them. Leave empty for a comment about the page as a whole.\n * @param {string} params.parentUuid - The root comment this replies to. Omit for a new thread — only roots can be resolved.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsCreate(params: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string }): Promise<Models.PageCommentList>;\n /**\n * The same route writes both kinds, and which one you get is decided by the body: `blockUuids` starts a new thread pinned to those blocks, `parentUuid` hangs a reply under an existing root. Everyone named with an @mention in the body is notified, and on a reply so is everybody already in the thread — the actor never notifies themselves.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} body - The comment, as editor HTML. `<span data-type=\"mention\" data-id=\"USER_ID\">` is what this app reads to decide whom to notify; `<li data-type=\"taskItem\" data-checked=\"false\">` makes a checkbox the toggle-task route can flip.\n * @param {string[]} blockUuids - The blocks this thread is about, so the editor can draw a marker next to them. Leave empty for a comment about the page as a whole.\n * @param {string} parentUuid - The root comment this replies to. Omit for a new thread — only roots can be resolved.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsCreate(pageId: string, body: string, blockUuids?: string[], parentUuid?: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsCreate(\n paramsOrFirst: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string } | string,\n ...rest: [(string)?, (string[])?, (string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, body: string, blockUuids?: string[], parentUuid?: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n body: rest[0] as string,\n blockUuids: rest[1] as string[],\n parentUuid: rest[2] as string \n };\n }\n \n const pageId = params.pageId;\n const body = params.body;\n const blockUuids = params.blockUuids;\n const parentUuid = params.parentUuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof body === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"body\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments'.replace('{page_id}', pageId);\n const apiPayload: Payload = {};\n if (typeof blockUuids !== 'undefined') {\n apiPayload['blockUuids'] = blockUuids;\n }\n if (typeof body !== 'undefined') {\n apiPayload['body'] = body;\n }\n if (typeof parentUuid !== 'undefined') {\n apiPayload['parentUuid'] = parentUuid;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * A hard delete, and deleting a root takes its replies with it.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsDelete(params: { pageId: string, uuid: string }): Promise<Models.PageCommentList>;\n /**\n * A hard delete, and deleting a root takes its replies with it.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsDelete(pageId: string, uuid: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsDelete(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {string} params.body - The comment, as editor HTML. Replaces the old body completely.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesEditorCommentsUpdate(params: { pageId: string, uuid: string, body: string }): Promise<Models.Error>;\n /**\n * Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {string} body - The comment, as editor HTML. Replaces the old body completely.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.Error>;\n pagesEditorCommentsUpdate(\n paramsOrFirst: { pageId: string, uuid: string, body: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.Error> {\n let params: { pageId: string, uuid: string, body: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string, body: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string,\n body: rest[1] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n const body = params.body;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n if (typeof body === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"body\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n if (typeof body !== 'undefined') {\n apiPayload['body'] = body;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesEditorCommentsResolve(params: { pageId: string, uuid: string }): Promise<Models.Error>;\n /**\n * Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.Error>;\n pagesEditorCommentsResolve(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Error> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/resolve'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's \"edited\" marker, so a call that changes nothing must not move it.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {number} params.taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesEditorCommentsToggleTask(params: { pageId: string, uuid: string, taskIndex: number }): Promise<Models.Error>;\n /**\n * A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's \"edited\" marker, so a call that changes nothing must not move it.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {number} taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.Error>;\n pagesEditorCommentsToggleTask(\n paramsOrFirst: { pageId: string, uuid: string, taskIndex: number } | string,\n ...rest: [(string)?, (number)?] \n ): Promise<Models.Error> {\n let params: { pageId: string, uuid: string, taskIndex: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string, taskIndex: number };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string,\n taskIndex: rest[1] as number \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n const taskIndex = params.taskIndex;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n if (typeof taskIndex === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"taskIndex\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/toggle-task'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n if (typeof taskIndex !== 'undefined') {\n apiPayload['taskIndex'] = taskIndex;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesEditorCommentsUnresolve(params: { pageId: string, uuid: string }): Promise<Models.Error>;\n /**\n * Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.Error>;\n pagesEditorCommentsUnresolve(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Error> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/unresolve'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/services/pages-collaboration.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAIjE,MAAM,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A,UAAM,UAAU,yDAAyD,QAAQ,aAAa,MAAM,EAAE,QAAQ,UAAU,IAAI;AAC5H,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,cAAc,aAAa;AAClC,iBAAW,WAAW,IAAI;AAAA,IAC9B;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAqBA,6BACI,kBACG,MAC4B;AAC/B,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACvF,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,KAAK,CAAC;AAAA,MAChB;AAAA,IACJ;AAEA,UAAM,SAAS,OAAO;AACtB,UAAM,OAAO,OAAO;AAEpB,QAAI,OAAO,WAAW,aAAa;AAC/B,YAAM,IAAI,kBAAkB,sCAAsC;AAAA,IACtE;AACA,QAAI,OAAO,SAAS,aAAa;AAC7B,YAAM,IAAI,kBAAkB,oCAAoC;AAAA,IACpE;AAEA,UAAM,UAAU,uDAAuD,QAAQ,aAAa,MAAM,EAAE,QAAQ,UAAU,IAAI;AAC1H,UAAM,aAAsB,CAAC;AAC7B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { RevenexxException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\n\nexport class PagesCollaboration {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * The caller's own notifications, newest first, 20 at a time. Paged by an opaque cursor rather than by offset, so new arrivals never shift a page under the reader. It is also the one read in this app that writes: `?markAsRead=true` flags the notifications on the page it just returned as read, which is how a feed that has been looked at empties its badge without a second call — leave it off and reading changes nothing.\n *\n * @param {string} params.after - Continue after this cursor — pass back the `cursor` from the previous page. Omit for the first page. It encodes the last item's timestamp and id, so it is stable while new notifications arrive.\n * @param {string} params.markAsRead - Send the literal `true` to mark the notifications ON THIS PAGE read as a side effect of reading them. Any other value, including `1` and `false`, is accepted and leaves them unread.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsList(params?: { after?: string, markAsRead?: string }): Promise<{}>;\n /**\n * The caller's own notifications, newest first, 20 at a time. Paged by an opaque cursor rather than by offset, so new arrivals never shift a page under the reader. It is also the one read in this app that writes: `?markAsRead=true` flags the notifications on the page it just returned as read, which is how a feed that has been looked at empties its badge without a second call — leave it off and reading changes nothing.\n *\n * @param {string} after - Continue after this cursor — pass back the `cursor` from the previous page. Omit for the first page. It encodes the last item's timestamp and id, so it is stable while new notifications arrive.\n * @param {string} markAsRead - Send the literal `true` to mark the notifications ON THIS PAGE read as a side effect of reading them. Any other value, including `1` and `false`, is accepted and leaves them unread.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorNotificationsList(after?: string, markAsRead?: string): Promise<{}>;\n pagesEditorNotificationsList(\n paramsOrFirst?: { after?: string, markAsRead?: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { after?: string, markAsRead?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { after?: string, markAsRead?: string };\n } else {\n params = {\n after: paramsOrFirst as string,\n markAsRead: rest[0] as string \n };\n }\n \n const after = params.after;\n const markAsRead = params.markAsRead;\n\n\n const apiPath = '/v1/pages/editor/notifications';\n const apiPayload: Payload = {};\n if (typeof after !== 'undefined') {\n apiPayload['after'] = after;\n }\n if (typeof markAsRead !== 'undefined') {\n apiPayload['markAsRead'] = markAsRead;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Empties the badge in one call. Every unread notification of the CURRENT user is flagged read — the user is the one the request's context token names and there is no body with which to name another. Nothing is deleted: `GET /pages/editor/notifications` still returns the same feed, just with `read` set. The answer is the new unread count, so a client can set the badge straight from it without a second read.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsMarkAllRead(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/notifications/mark-all-read';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * The cheap poll behind the badge.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorNotificationsUnreadCount(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/notifications/unread-count';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * What the @mention picker is filled from. When the identity service cannot be reached this degrades to the authors who have already commented on this tenant's pages rather than answering an error — a mention list that is short is more useful than one that is missing.\n *\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesEditorUsers(): Promise<{}> {\n\n const apiPath = '/v1/pages/editor/users';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Every comment on the page in one flat list, oldest first, roots and replies together and resolved threads included — there is no filter and no paging, because the editor nests and filters them itself from `parentUuid` and pins each root to its blocks with `blockUuids`. Comments hang off the PAGE, not off a revision or an edit state, so publishing and reverting leave them standing; that is what makes them usable as a review trail across several rounds of edits.\n *\n * @param {string} params.pageId - The page being edited.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsList(params: { pageId: string }): Promise<Models.PageCommentList>;\n /**\n * Every comment on the page in one flat list, oldest first, roots and replies together and resolved threads included — there is no filter and no paging, because the editor nests and filters them itself from `parentUuid` and pins each root to its blocks with `blockUuids`. Comments hang off the PAGE, not off a revision or an edit state, so publishing and reverting leave them standing; that is what makes them usable as a review trail across several rounds of edits.\n *\n * @param {string} pageId - The page being edited.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsList(pageId: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsList(\n paramsOrFirst: { pageId: string } | string \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string };\n } else {\n params = {\n pageId: paramsOrFirst as string \n };\n }\n \n const pageId = params.pageId;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments'.replace('{page_id}', pageId);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * The same route writes both kinds, and which one you get is decided by the body: `blockUuids` starts a new thread pinned to those blocks, `parentUuid` hangs a reply under an existing root. Everyone named with an @mention in the body is notified, and on a reply so is everybody already in the thread — the actor never notifies themselves.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.body - The comment, as editor HTML. `<span data-type=\"mention\" data-id=\"USER_ID\">` is what this app reads to decide whom to notify; `<li data-type=\"taskItem\" data-checked=\"false\">` makes a checkbox the toggle-task route can flip.\n * @param {string[]} params.blockUuids - The blocks this thread is about, so the editor can draw a marker next to them. Leave empty for a comment about the page as a whole.\n * @param {string} params.parentUuid - The root comment this replies to. Omit for a new thread — only roots can be resolved.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsCreate(params: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string }): Promise<Models.PageCommentList>;\n /**\n * The same route writes both kinds, and which one you get is decided by the body: `blockUuids` starts a new thread pinned to those blocks, `parentUuid` hangs a reply under an existing root. Everyone named with an @mention in the body is notified, and on a reply so is everybody already in the thread — the actor never notifies themselves.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} body - The comment, as editor HTML. `<span data-type=\"mention\" data-id=\"USER_ID\">` is what this app reads to decide whom to notify; `<li data-type=\"taskItem\" data-checked=\"false\">` makes a checkbox the toggle-task route can flip.\n * @param {string[]} blockUuids - The blocks this thread is about, so the editor can draw a marker next to them. Leave empty for a comment about the page as a whole.\n * @param {string} parentUuid - The root comment this replies to. Omit for a new thread — only roots can be resolved.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsCreate(pageId: string, body: string, blockUuids?: string[], parentUuid?: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsCreate(\n paramsOrFirst: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string } | string,\n ...rest: [(string)?, (string[])?, (string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, body: string, blockUuids?: string[], parentUuid?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, body: string, blockUuids?: string[], parentUuid?: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n body: rest[0] as string,\n blockUuids: rest[1] as string[],\n parentUuid: rest[2] as string \n };\n }\n \n const pageId = params.pageId;\n const body = params.body;\n const blockUuids = params.blockUuids;\n const parentUuid = params.parentUuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof body === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"body\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments'.replace('{page_id}', pageId);\n const apiPayload: Payload = {};\n if (typeof blockUuids !== 'undefined') {\n apiPayload['blockUuids'] = blockUuids;\n }\n if (typeof body !== 'undefined') {\n apiPayload['body'] = body;\n }\n if (typeof parentUuid !== 'undefined') {\n apiPayload['parentUuid'] = parentUuid;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * A hard delete, and deleting a root takes its replies with it.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsDelete(params: { pageId: string, uuid: string }): Promise<Models.PageCommentList>;\n /**\n * A hard delete, and deleting a root takes its replies with it.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsDelete(pageId: string, uuid: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsDelete(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {string} params.body - The comment, as editor HTML. Replaces the old body completely.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsUpdate(params: { pageId: string, uuid: string, body: string }): Promise<Models.PageCommentList>;\n /**\n * Rewrites what a comment says, and only its author may — a comment carries an `author_id` and anybody else is refused with 403. Only the body moves: what the comment is pinned to, whether the thread is resolved and who wrote it are all fixed when it is created. Rewriting a body does NOT re-run the @mention notifications, so mentioning somebody new by editing will not reach them. Answers the page's whole comment list rather than the one row, so a client can re-render from the response.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {string} body - The comment, as editor HTML. Replaces the old body completely.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsUpdate(pageId: string, uuid: string, body: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsUpdate(\n paramsOrFirst: { pageId: string, uuid: string, body: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, uuid: string, body: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string, body: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string,\n body: rest[1] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n const body = params.body;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n if (typeof body === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"body\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n if (typeof body !== 'undefined') {\n apiPayload['body'] = body;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsResolve(params: { pageId: string, uuid: string }): Promise<Models.PageCommentList>;\n /**\n * Marks a thread handled, so the editor stops surfacing it on the block it is pinned to. Only a ROOT can be resolved — resolved-ness is a property of the thread and not of a message in it, so pointing this at a reply is refused with 400 rather than quietly resolving its parent. Nothing is deleted, nobody is notified, and the thread stays in the list; `.../unresolve` is the way back. Answers the page's whole comment list.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsResolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsResolve(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/resolve'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's \"edited\" marker, so a call that changes nothing must not move it.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {number} params.taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentItem>}\n */\n pagesEditorCommentsToggleTask(params: { pageId: string, uuid: string, taskIndex: number }): Promise<Models.PageCommentItem>;\n /**\n * A comment body may carry a task list. This flips one checkbox by rewriting the body's markup, and answers the single comment rather than the whole list. A `taskIndex` that names no checkbox is refused and nothing is written — the comment's `updated_at` is the editor's \"edited\" marker, so a call that changes nothing must not move it.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @param {number} taskIndex - The task item to toggle, counted in document order from 0. A comment with fewer tasks than that answers 400, and so does anything that is not a whole number at or above 0.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentItem>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsToggleTask(pageId: string, uuid: string, taskIndex: number): Promise<Models.PageCommentItem>;\n pagesEditorCommentsToggleTask(\n paramsOrFirst: { pageId: string, uuid: string, taskIndex: number } | string,\n ...rest: [(string)?, (number)?] \n ): Promise<Models.PageCommentItem> {\n let params: { pageId: string, uuid: string, taskIndex: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string, taskIndex: number };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string,\n taskIndex: rest[1] as number \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n const taskIndex = params.taskIndex;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n if (typeof taskIndex === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"taskIndex\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/toggle-task'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n if (typeof taskIndex !== 'undefined') {\n apiPayload['taskIndex'] = taskIndex;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.\n *\n * @param {string} params.pageId - The page being edited.\n * @param {string} params.uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n */\n pagesEditorCommentsUnresolve(params: { pageId: string, uuid: string }): Promise<Models.PageCommentList>;\n /**\n * Clears the resolved flag and puts the thread back in front of whoever is editing — the mirror of `.../resolve` in every respect, including that only a root can be reopened and that a reply answers 400. A thread that was already open is accepted and stays open. Answers the page's whole comment list.\n *\n * @param {string} pageId - The page being edited.\n * @param {string} uuid - The comment id — the `uuid` of a `PageCommentItem`, not a row id of any other shape.\n * @throws {RevenexxException}\n * @returns {Promise<Models.PageCommentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesEditorCommentsUnresolve(pageId: string, uuid: string): Promise<Models.PageCommentList>;\n pagesEditorCommentsUnresolve(\n paramsOrFirst: { pageId: string, uuid: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.PageCommentList> {\n let params: { pageId: string, uuid: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { pageId: string, uuid: string };\n } else {\n params = {\n pageId: paramsOrFirst as string,\n uuid: rest[0] as string \n };\n }\n \n const pageId = params.pageId;\n const uuid = params.uuid;\n\n if (typeof pageId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"pageId\"');\n }\n if (typeof uuid === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"uuid\"');\n }\n\n const apiPath = '/v1/pages/editor/{page_id}/comments/{uuid}/unresolve'.replace('{page_id}', pageId).replace('{uuid}', uuid);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n}\n"]}
|