@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/services/pages-collaboration.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAIjE,IAAM,qBAAN,MAAyB;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,aAAsB,CAAC;AAC7B,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,QAAI,OAAO,eAAe,aAAa;AACnC,iBAAW,YAAY,IAAI;AAAA,IAC/B;AACA,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;AAAA;AAAA;AA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AAO,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,IAAM,qBAAN,MAAyB;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,QA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AAA,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"]}
|
|
@@ -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';
|
|
@@ -258,13 +276,13 @@ declare class PagesDelivery {
|
|
|
258
276
|
* @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.
|
|
259
277
|
* @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.
|
|
260
278
|
* @throws {RevenexxException}
|
|
261
|
-
* @returns {Promise<Models.
|
|
279
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
262
280
|
*/
|
|
263
281
|
pagesDeliveryPage(params?: {
|
|
264
282
|
slug?: string;
|
|
265
283
|
id?: string;
|
|
266
284
|
langcode?: string;
|
|
267
|
-
}): Promise<Models.
|
|
285
|
+
}): Promise<Models.DeliveryPage>;
|
|
268
286
|
/**
|
|
269
287
|
* What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.
|
|
270
288
|
*
|
|
@@ -272,10 +290,10 @@ declare class PagesDelivery {
|
|
|
272
290
|
* @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.
|
|
273
291
|
* @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.
|
|
274
292
|
* @throws {RevenexxException}
|
|
275
|
-
* @returns {Promise<Models.
|
|
293
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
276
294
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
277
295
|
*/
|
|
278
|
-
pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.
|
|
296
|
+
pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.DeliveryPage>;
|
|
279
297
|
/**
|
|
280
298
|
* The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.
|
|
281
299
|
*
|
|
@@ -310,22 +328,22 @@ declare class PagesDelivery {
|
|
|
310
328
|
* @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.
|
|
311
329
|
* @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.
|
|
312
330
|
* @throws {RevenexxException}
|
|
313
|
-
* @returns {Promise<Models.
|
|
331
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
314
332
|
*/
|
|
315
333
|
pagesDeliveryPreview(params: {
|
|
316
334
|
token: string;
|
|
317
335
|
langcode?: string;
|
|
318
|
-
}): Promise<Models.
|
|
336
|
+
}): Promise<Models.DeliveryPage>;
|
|
319
337
|
/**
|
|
320
338
|
* The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.
|
|
321
339
|
*
|
|
322
340
|
* @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.
|
|
323
341
|
* @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.
|
|
324
342
|
* @throws {RevenexxException}
|
|
325
|
-
* @returns {Promise<Models.
|
|
343
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
326
344
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
327
345
|
*/
|
|
328
|
-
pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.
|
|
346
|
+
pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.DeliveryPage>;
|
|
329
347
|
}
|
|
330
348
|
|
|
331
349
|
export { PagesDelivery };
|
|
@@ -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';
|
|
@@ -258,13 +276,13 @@ declare class PagesDelivery {
|
|
|
258
276
|
* @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.
|
|
259
277
|
* @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.
|
|
260
278
|
* @throws {RevenexxException}
|
|
261
|
-
* @returns {Promise<Models.
|
|
279
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
262
280
|
*/
|
|
263
281
|
pagesDeliveryPage(params?: {
|
|
264
282
|
slug?: string;
|
|
265
283
|
id?: string;
|
|
266
284
|
langcode?: string;
|
|
267
|
-
}): Promise<Models.
|
|
285
|
+
}): Promise<Models.DeliveryPage>;
|
|
268
286
|
/**
|
|
269
287
|
* What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.
|
|
270
288
|
*
|
|
@@ -272,10 +290,10 @@ declare class PagesDelivery {
|
|
|
272
290
|
* @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.
|
|
273
291
|
* @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.
|
|
274
292
|
* @throws {RevenexxException}
|
|
275
|
-
* @returns {Promise<Models.
|
|
293
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
276
294
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
277
295
|
*/
|
|
278
|
-
pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.
|
|
296
|
+
pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.DeliveryPage>;
|
|
279
297
|
/**
|
|
280
298
|
* The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.
|
|
281
299
|
*
|
|
@@ -310,22 +328,22 @@ declare class PagesDelivery {
|
|
|
310
328
|
* @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.
|
|
311
329
|
* @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.
|
|
312
330
|
* @throws {RevenexxException}
|
|
313
|
-
* @returns {Promise<Models.
|
|
331
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
314
332
|
*/
|
|
315
333
|
pagesDeliveryPreview(params: {
|
|
316
334
|
token: string;
|
|
317
335
|
langcode?: string;
|
|
318
|
-
}): Promise<Models.
|
|
336
|
+
}): Promise<Models.DeliveryPage>;
|
|
319
337
|
/**
|
|
320
338
|
* The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.
|
|
321
339
|
*
|
|
322
340
|
* @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.
|
|
323
341
|
* @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.
|
|
324
342
|
* @throws {RevenexxException}
|
|
325
|
-
* @returns {Promise<Models.
|
|
343
|
+
* @returns {Promise<Models.DeliveryPage>}
|
|
326
344
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
327
345
|
*/
|
|
328
|
-
pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.
|
|
346
|
+
pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.DeliveryPage>;
|
|
329
347
|
}
|
|
330
348
|
|
|
331
349
|
export { PagesDelivery };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/services/pages-delivery.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAIjE,MAAM,cAAc;AAAA,EAGvB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAuBA,mBACI,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,QAAQ,KAAK,CAAC;AAAA,QACd,OAAO,KAAK,CAAC;AAAA,M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EA,UAAM,QAAQ,OAAO;AACrB,UAAM,WAAW,OAAO;AAExB,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AAEA,UAAM,UAAU,qCAAqC,QAAQ,WAAW,KAAK;AAC7E,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,aAAa,aAAa;AACjC,iBAAW,UAAU,IAAI;AAAA,IAC7B;AACA,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 PagesDelivery {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} params.limit - Page size (default 50, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryMenus(params?: { limit?: number, offset?: number, order?: string }): Promise<{}>;\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} limit - Page size (default 50, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryMenus(limit?: number, offset?: number, order?: string): Promise<{}>;\n pagesDeliveryMenus(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string } | number,\n ...rest: [(number)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n\n\n const apiPath = '/v1/pages/delivery/menus';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\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 * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} params.slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesDeliveryPage(params?: { slug?: string, id?: string, langcode?: string }): Promise<Models.Error>;\n /**\n * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.Error>;\n pagesDeliveryPage(\n paramsOrFirst?: { slug?: string, id?: string, langcode?: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.Error> {\n let params: { slug?: string, id?: string, langcode?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { slug?: string, id?: string, langcode?: string };\n } else {\n params = {\n slug: paramsOrFirst as string,\n id: rest[0] as string,\n langcode: rest[1] as string \n };\n }\n \n const slug = params.slug;\n const id = params.id;\n const langcode = params.langcode;\n\n\n const apiPath = '/v1/pages/delivery/page';\n const apiPayload: Payload = {};\n if (typeof slug !== 'undefined') {\n apiPayload['slug'] = slug;\n }\n if (typeof id !== 'undefined') {\n apiPayload['id'] = id;\n }\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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 * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} params.limit - Page size (default 100, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} params.bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryPages(params?: { limit?: number, offset?: number, order?: string, bundle?: string }): Promise<{}>;\n /**\n * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} limit - Page size (default 100, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPages(limit?: number, offset?: number, order?: string, bundle?: string): Promise<{}>;\n pagesDeliveryPages(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string, bundle?: string } | number,\n ...rest: [(number)?, (string)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string, bundle?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string, bundle?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string,\n bundle: rest[2] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n const bundle = params.bundle;\n\n\n const apiPath = '/v1/pages/delivery/pages';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\n }\n if (typeof bundle !== 'undefined') {\n apiPayload['bundle'] = bundle;\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 * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesDeliveryPreview(params: { token: string, langcode?: string }): Promise<Models.Error>;\n /**\n * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.Error>;\n pagesDeliveryPreview(\n paramsOrFirst: { token: string, langcode?: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Error> {\n let params: { token: string, langcode?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { token: string, langcode?: string };\n } else {\n params = {\n token: paramsOrFirst as string,\n langcode: rest[0] as string \n };\n }\n \n const token = params.token;\n const langcode = params.langcode;\n\n if (typeof token === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"token\"');\n }\n\n const apiPath = '/v1/pages/delivery/preview/{token}'.replace('{token}', token);\n const apiPayload: Payload = {};\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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"]}
|
|
1
|
+
{"version":3,"sources":["../../src/services/pages-delivery.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAIjE,MAAM,cAAc;AAAA,EAGvB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAuBA,mBACI,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,QAAQ,KAAK,CAAC;AAAA,QACd,OAAO,KAAK,CAAC;AAAA,MACjB;AAAA,IACJ;AAEA,UAAM,QAAQ,OAAO;AACrB,UAAM,SAAS,OAAO;AACtB,UAAM,QAAQ,OAAO;AAGrB,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,iBAAW,QAAQ,IAAI;AAAA,IAC3B;AACA,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,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;AAAA,EAuB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AAC7B,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,iBAAW,QAAQ,IAAI;AAAA,IAC3B;AACA,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,iBAAW,QAAQ,IAAI;AAAA,IAC3B;AACA,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;AAAA,EAqBA,qBACI,kBACG,MACyB;AAC5B,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACvF,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,OAAO;AAAA,QACP,UAAU,KAAK,CAAC;AAAA,MACpB;AAAA,IACJ;AAEA,UAAM,QAAQ,OAAO;AACrB,UAAM,WAAW,OAAO;AAExB,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AAEA,UAAM,UAAU,qCAAqC,QAAQ,WAAW,KAAK;AAC7E,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,aAAa,aAAa;AACjC,iBAAW,UAAU,IAAI;AAAA,IAC7B;AACA,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 PagesDelivery {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} params.limit - Page size (default 50, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryMenus(params?: { limit?: number, offset?: number, order?: string }): Promise<{}>;\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} limit - Page size (default 50, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryMenus(limit?: number, offset?: number, order?: string): Promise<{}>;\n pagesDeliveryMenus(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string } | number,\n ...rest: [(number)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n\n\n const apiPath = '/v1/pages/delivery/menus';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\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 * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} params.slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n */\n pagesDeliveryPage(params?: { slug?: string, id?: string, langcode?: string }): Promise<Models.DeliveryPage>;\n /**\n * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.DeliveryPage>;\n pagesDeliveryPage(\n paramsOrFirst?: { slug?: string, id?: string, langcode?: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.DeliveryPage> {\n let params: { slug?: string, id?: string, langcode?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { slug?: string, id?: string, langcode?: string };\n } else {\n params = {\n slug: paramsOrFirst as string,\n id: rest[0] as string,\n langcode: rest[1] as string \n };\n }\n \n const slug = params.slug;\n const id = params.id;\n const langcode = params.langcode;\n\n\n const apiPath = '/v1/pages/delivery/page';\n const apiPayload: Payload = {};\n if (typeof slug !== 'undefined') {\n apiPayload['slug'] = slug;\n }\n if (typeof id !== 'undefined') {\n apiPayload['id'] = id;\n }\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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 * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} params.limit - Page size (default 100, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} params.bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryPages(params?: { limit?: number, offset?: number, order?: string, bundle?: string }): Promise<{}>;\n /**\n * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} limit - Page size (default 100, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPages(limit?: number, offset?: number, order?: string, bundle?: string): Promise<{}>;\n pagesDeliveryPages(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string, bundle?: string } | number,\n ...rest: [(number)?, (string)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string, bundle?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string, bundle?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string,\n bundle: rest[2] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n const bundle = params.bundle;\n\n\n const apiPath = '/v1/pages/delivery/pages';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\n }\n if (typeof bundle !== 'undefined') {\n apiPayload['bundle'] = bundle;\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 * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n */\n pagesDeliveryPreview(params: { token: string, langcode?: string }): Promise<Models.DeliveryPage>;\n /**\n * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.DeliveryPage>;\n pagesDeliveryPreview(\n paramsOrFirst: { token: string, langcode?: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.DeliveryPage> {\n let params: { token: string, langcode?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { token: string, langcode?: string };\n } else {\n params = {\n token: paramsOrFirst as string,\n langcode: rest[0] as string \n };\n }\n \n const token = params.token;\n const langcode = params.langcode;\n\n if (typeof token === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"token\"');\n }\n\n const apiPath = '/v1/pages/delivery/preview/{token}'.replace('{token}', token);\n const apiPayload: Payload = {};\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/services/pages-delivery.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAIjE,IAAM,gBAAN,MAAoB;AAAA,EAGvB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAu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;AAAA,EACJ;AAAA,EAqBA,qBACI,kBACG,MACkB;AACrB,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACvF,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,OAAO;AAAA,QACP,UAAU,KAAK,CAAC;AAAA,MACpB;AAAA,IACJ;AAEA,UAAM,QAAQ,OAAO;AACrB,UAAM,WAAW,OAAO;AAExB,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AAEA,UAAM,UAAU,qCAAqC,QAAQ,WAAW,KAAK;AAC7E,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,aAAa,aAAa;AACjC,iBAAW,UAAU,IAAI;AAAA,IAC7B;AACA,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 PagesDelivery {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} params.limit - Page size (default 50, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryMenus(params?: { limit?: number, offset?: number, order?: string }): Promise<{}>;\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} limit - Page size (default 50, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryMenus(limit?: number, offset?: number, order?: string): Promise<{}>;\n pagesDeliveryMenus(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string } | number,\n ...rest: [(number)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n\n\n const apiPath = '/v1/pages/delivery/menus';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\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 * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} params.slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesDeliveryPage(params?: { slug?: string, id?: string, langcode?: string }): Promise<Models.Error>;\n /**\n * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.Error>;\n pagesDeliveryPage(\n paramsOrFirst?: { slug?: string, id?: string, langcode?: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.Error> {\n let params: { slug?: string, id?: string, langcode?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { slug?: string, id?: string, langcode?: string };\n } else {\n params = {\n slug: paramsOrFirst as string,\n id: rest[0] as string,\n langcode: rest[1] as string \n };\n }\n \n const slug = params.slug;\n const id = params.id;\n const langcode = params.langcode;\n\n\n const apiPath = '/v1/pages/delivery/page';\n const apiPayload: Payload = {};\n if (typeof slug !== 'undefined') {\n apiPayload['slug'] = slug;\n }\n if (typeof id !== 'undefined') {\n apiPayload['id'] = id;\n }\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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 * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} params.limit - Page size (default 100, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} params.bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryPages(params?: { limit?: number, offset?: number, order?: string, bundle?: string }): Promise<{}>;\n /**\n * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} limit - Page size (default 100, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPages(limit?: number, offset?: number, order?: string, bundle?: string): Promise<{}>;\n pagesDeliveryPages(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string, bundle?: string } | number,\n ...rest: [(number)?, (string)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string, bundle?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string, bundle?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string,\n bundle: rest[2] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n const bundle = params.bundle;\n\n\n const apiPath = '/v1/pages/delivery/pages';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\n }\n if (typeof bundle !== 'undefined') {\n apiPayload['bundle'] = bundle;\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 * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n pagesDeliveryPreview(params: { token: string, langcode?: string }): Promise<Models.Error>;\n /**\n * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.Error>;\n pagesDeliveryPreview(\n paramsOrFirst: { token: string, langcode?: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Error> {\n let params: { token: string, langcode?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { token: string, langcode?: string };\n } else {\n params = {\n token: paramsOrFirst as string,\n langcode: rest[0] as string \n };\n }\n \n const token = params.token;\n const langcode = params.langcode;\n\n if (typeof token === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"token\"');\n }\n\n const apiPath = '/v1/pages/delivery/preview/{token}'.replace('{token}', token);\n const apiPayload: Payload = {};\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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"]}
|
|
1
|
+
{"version":3,"sources":["../../src/services/pages-delivery.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAIjE,IAAM,gBAAN,MAAoB;AAAA,EAGvB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAuBA,mBACI,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,QAAQ,KAAK,CAAC;AAAA,QACd,OAAO,KAAK,CAAC;AAAA,MACjB;AAAA,IACJ;AAEA,UAAM,QAAQ,OAAO;AACrB,UAAM,SAAS,OAAO;AACtB,UAAM,QAAQ,OAAO;AAGrB,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,UAAU,aAAa;AAC9B,iBAAW,OAAO,IAAI;AAAA,IAC1B;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,iBAAW,QAAQ,IAAI;AA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7B;AACA,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 PagesDelivery {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} params.limit - Page size (default 50, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryMenus(params?: { limit?: number, offset?: number, order?: string }): Promise<{}>;\n /**\n * One call gives a theme its whole chrome: header, footer and account navigation, each under the key the theme looks it up by. This route reads no filter — fetch all of them once and index by `id`.\n *\n * @param {number} limit - Page size (default 50, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryMenus(limit?: number, offset?: number, order?: string): Promise<{}>;\n pagesDeliveryMenus(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string } | number,\n ...rest: [(number)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n\n\n const apiPath = '/v1/pages/delivery/menus';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\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 * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} params.slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} params.id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} params.langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n */\n pagesDeliveryPage(params?: { slug?: string, id?: string, langcode?: string }): Promise<Models.DeliveryPage>;\n /**\n * What a storefront calls to render a URL: `GET /pages/delivery/page?slug=about-us&langcode=de`. Send exactly one selector — `slug` or `id`. `slug` is matched against the page and then against its translations, so a localized URL resolves to its page. Only the PUBLISHED revision is served, so an edit in progress never leaks. What comes back is finished rather than raw: `langcode` is resolved field by field with the page's source language behind it, blocks whose publish window has not opened or has already closed are left out, and every library reference is expanded into the subtree it points at — so a renderer walks the tree it is given and makes no second call for any of it.\n *\n * @param {string} slug - The page slug, or the slug of one of its translations, without a leading slash — the path segment the storefront routes. Either this or `id`.\n * @param {string} id - The page id, for a storefront that already holds one (from `GET /pages/delivery/pages`). Either this or `slug`.\n * @param {string} langcode - Language to resolve the tree for, e.g. `de`. Falls back to the page's source language per field, so a partly translated page still renders whole.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPage(slug?: string, id?: string, langcode?: string): Promise<Models.DeliveryPage>;\n pagesDeliveryPage(\n paramsOrFirst?: { slug?: string, id?: string, langcode?: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.DeliveryPage> {\n let params: { slug?: string, id?: string, langcode?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { slug?: string, id?: string, langcode?: string };\n } else {\n params = {\n slug: paramsOrFirst as string,\n id: rest[0] as string,\n langcode: rest[1] as string \n };\n }\n \n const slug = params.slug;\n const id = params.id;\n const langcode = params.langcode;\n\n\n const apiPath = '/v1/pages/delivery/page';\n const apiPayload: Payload = {};\n if (typeof slug !== 'undefined') {\n apiPayload['slug'] = slug;\n }\n if (typeof id !== 'undefined') {\n apiPayload['id'] = id;\n }\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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 * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} params.limit - Page size (default 100, max 200).\n * @param {number} params.offset - Row offset for pagination (default 0).\n * @param {string} params.order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} params.bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n pagesDeliveryPages(params?: { limit?: number, offset?: number, order?: string, bundle?: string }): Promise<{}>;\n /**\n * The route a sitemap, a static build or a link picker is generated from. Only published pages, never a soft-deleted one — `filter` echoes both predicates the route applies on its own. A `?status=` of your own is ignored: this route is the published view by definition.\n *\n * @param {number} limit - Page size (default 100, max 200).\n * @param {number} offset - Row offset for pagination (default 0).\n * @param {string} order - Sort by one column: 'column' | 'column.asc' | 'column.desc'. A bare column sorts ascending. A column this entity does not have, or any other shape, is refused with 400.\n * @param {string} bundle - Exact page type — how a theme asks for just its landing pages. The value set belongs to the active theme.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPages(limit?: number, offset?: number, order?: string, bundle?: string): Promise<{}>;\n pagesDeliveryPages(\n paramsOrFirst?: { limit?: number, offset?: number, order?: string, bundle?: string } | number,\n ...rest: [(number)?, (string)?, (string)?] \n ): Promise<{}> {\n let params: { limit?: number, offset?: number, order?: string, bundle?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { limit?: number, offset?: number, order?: string, bundle?: string };\n } else {\n params = {\n limit: paramsOrFirst as number,\n offset: rest[0] as number,\n order: rest[1] as string,\n bundle: rest[2] as string \n };\n }\n \n const limit = params.limit;\n const offset = params.offset;\n const order = params.order;\n const bundle = params.bundle;\n\n\n const apiPath = '/v1/pages/delivery/pages';\n const apiPayload: Payload = {};\n if (typeof limit !== 'undefined') {\n apiPayload['limit'] = limit;\n }\n if (typeof offset !== 'undefined') {\n apiPayload['offset'] = offset;\n }\n if (typeof order !== 'undefined') {\n apiPayload['order'] = order;\n }\n if (typeof bundle !== 'undefined') {\n apiPayload['bundle'] = bundle;\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 * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} params.token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} params.langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n */\n pagesDeliveryPreview(params: { token: string, langcode?: string }): Promise<Models.DeliveryPage>;\n /**\n * The same shape `GET /pages/delivery/page` answers, built from the UNPUBLISHED working copy instead of the published revision — so a reviewer without an editor account sees exactly what the storefront would render.\n *\n * @param {string} token - The token handed out by POST /pages/editor/{page_id}/preview-grant.\n * @param {string} langcode - Language to resolve the tree for. Falls back to the page's source language, per field.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DeliveryPage>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n pagesDeliveryPreview(token: string, langcode?: string): Promise<Models.DeliveryPage>;\n pagesDeliveryPreview(\n paramsOrFirst: { token: string, langcode?: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.DeliveryPage> {\n let params: { token: string, langcode?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { token: string, langcode?: string };\n } else {\n params = {\n token: paramsOrFirst as string,\n langcode: rest[0] as string \n };\n }\n \n const token = params.token;\n const langcode = params.langcode;\n\n if (typeof token === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"token\"');\n }\n\n const apiPath = '/v1/pages/delivery/preview/{token}'.replace('{token}', token);\n const apiPayload: Payload = {};\n if (typeof langcode !== 'undefined') {\n apiPayload['langcode'] = langcode;\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"]}
|