@justonemonkey/n8n-nodes-polar-sh 1.0.0
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/LICENSE.md +19 -0
- package/README.md +112 -0
- package/dist/credentials/PolarApi.credentials.d.ts +10 -0
- package/dist/credentials/PolarApi.credentials.js +50 -0
- package/dist/credentials/PolarApi.credentials.js.map +1 -0
- package/dist/icons/polar.dark.svg +10 -0
- package/dist/icons/polar.svg +10 -0
- package/dist/nodes/Polar/Polar.node.d.ts +20 -0
- package/dist/nodes/Polar/Polar.node.js +140 -0
- package/dist/nodes/Polar/Polar.node.js.map +1 -0
- package/dist/nodes/Polar/Polar.node.json +14 -0
- package/dist/nodes/Polar/listSearch/getBenefits.d.ts +2 -0
- package/dist/nodes/Polar/listSearch/getBenefits.js +19 -0
- package/dist/nodes/Polar/listSearch/getBenefits.js.map +1 -0
- package/dist/nodes/Polar/listSearch/getCustomers.d.ts +2 -0
- package/dist/nodes/Polar/listSearch/getCustomers.js +19 -0
- package/dist/nodes/Polar/listSearch/getCustomers.js.map +1 -0
- package/dist/nodes/Polar/listSearch/getProducts.d.ts +2 -0
- package/dist/nodes/Polar/listSearch/getProducts.js +19 -0
- package/dist/nodes/Polar/listSearch/getProducts.js.map +1 -0
- package/dist/nodes/Polar/loadOptions/getBenefitOptions.d.ts +2 -0
- package/dist/nodes/Polar/loadOptions/getBenefitOptions.js +11 -0
- package/dist/nodes/Polar/loadOptions/getBenefitOptions.js.map +1 -0
- package/dist/nodes/Polar/loadOptions/getProductOptions.d.ts +2 -0
- package/dist/nodes/Polar/loadOptions/getProductOptions.js +12 -0
- package/dist/nodes/Polar/loadOptions/getProductOptions.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/create.js +347 -0
- package/dist/nodes/Polar/resources/benefit/create.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/delete.js +15 -0
- package/dist/nodes/Polar/resources/benefit/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/get.js +15 -0
- package/dist/nodes/Polar/resources/benefit/get.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/getAll.js +44 -0
- package/dist/nodes/Polar/resources/benefit/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/getGrants.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/getGrants.js +49 -0
- package/dist/nodes/Polar/resources/benefit/getGrants.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/index.js +71 -0
- package/dist/nodes/Polar/resources/benefit/index.js.map +1 -0
- package/dist/nodes/Polar/resources/benefit/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefit/update.js +321 -0
- package/dist/nodes/Polar/resources/benefit/update.js.map +1 -0
- package/dist/nodes/Polar/resources/benefitGrant/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefitGrant/getAll.js +41 -0
- package/dist/nodes/Polar/resources/benefitGrant/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/benefitGrant/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/benefitGrant/index.js +26 -0
- package/dist/nodes/Polar/resources/benefitGrant/index.js.map +1 -0
- package/dist/nodes/Polar/resources/checkout/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkout/create.js +211 -0
- package/dist/nodes/Polar/resources/checkout/create.js.map +1 -0
- package/dist/nodes/Polar/resources/checkout/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkout/get.js +16 -0
- package/dist/nodes/Polar/resources/checkout/get.js.map +1 -0
- package/dist/nodes/Polar/resources/checkout/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkout/getAll.js +62 -0
- package/dist/nodes/Polar/resources/checkout/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/checkout/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkout/index.js +53 -0
- package/dist/nodes/Polar/resources/checkout/index.js.map +1 -0
- package/dist/nodes/Polar/resources/checkout/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkout/update.js +185 -0
- package/dist/nodes/Polar/resources/checkout/update.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/create.js +139 -0
- package/dist/nodes/Polar/resources/checkoutLink/create.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/delete.js +15 -0
- package/dist/nodes/Polar/resources/checkoutLink/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/get.js +15 -0
- package/dist/nodes/Polar/resources/checkoutLink/get.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/getAll.js +33 -0
- package/dist/nodes/Polar/resources/checkoutLink/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/index.js +62 -0
- package/dist/nodes/Polar/resources/checkoutLink/index.js.map +1 -0
- package/dist/nodes/Polar/resources/checkoutLink/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/checkoutLink/update.js +112 -0
- package/dist/nodes/Polar/resources/checkoutLink/update.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/create.js +160 -0
- package/dist/nodes/Polar/resources/customField/create.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/delete.js +15 -0
- package/dist/nodes/Polar/resources/customField/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/get.js +15 -0
- package/dist/nodes/Polar/resources/customField/get.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/getAll.js +42 -0
- package/dist/nodes/Polar/resources/customField/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/index.js +62 -0
- package/dist/nodes/Polar/resources/customField/index.js.map +1 -0
- package/dist/nodes/Polar/resources/customField/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/customField/update.js +182 -0
- package/dist/nodes/Polar/resources/customField/update.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/create.js +127 -0
- package/dist/nodes/Polar/resources/customer/create.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/delete.js +33 -0
- package/dist/nodes/Polar/resources/customer/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/get.js +25 -0
- package/dist/nodes/Polar/resources/customer/get.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/getAll.js +43 -0
- package/dist/nodes/Polar/resources/customer/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/getPaymentMethods.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/getPaymentMethods.js +17 -0
- package/dist/nodes/Polar/resources/customer/getPaymentMethods.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/getState.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/getState.js +25 -0
- package/dist/nodes/Polar/resources/customer/getState.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/index.js +108 -0
- package/dist/nodes/Polar/resources/customer/index.js.map +1 -0
- package/dist/nodes/Polar/resources/customer/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/customer/update.js +85 -0
- package/dist/nodes/Polar/resources/customer/update.js.map +1 -0
- package/dist/nodes/Polar/resources/customerMeter/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerMeter/get.js +15 -0
- package/dist/nodes/Polar/resources/customerMeter/get.js.map +1 -0
- package/dist/nodes/Polar/resources/customerMeter/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerMeter/getAll.js +40 -0
- package/dist/nodes/Polar/resources/customerMeter/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/customerMeter/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerMeter/index.js +35 -0
- package/dist/nodes/Polar/resources/customerMeter/index.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/assign.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/assign.js +90 -0
- package/dist/nodes/Polar/resources/customerSeat/assign.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/claim.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/claim.js +18 -0
- package/dist/nodes/Polar/resources/customerSeat/claim.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/getAll.js +34 -0
- package/dist/nodes/Polar/resources/customerSeat/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.js +17 -0
- package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/index.js +71 -0
- package/dist/nodes/Polar/resources/customerSeat/index.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/resendInvitation.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/resendInvitation.js +15 -0
- package/dist/nodes/Polar/resources/customerSeat/resendInvitation.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSeat/revoke.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSeat/revoke.js +15 -0
- package/dist/nodes/Polar/resources/customerSeat/revoke.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSession/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSession/create.js +52 -0
- package/dist/nodes/Polar/resources/customerSession/create.js.map +1 -0
- package/dist/nodes/Polar/resources/customerSession/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/customerSession/index.js +26 -0
- package/dist/nodes/Polar/resources/customerSession/index.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/create.js +136 -0
- package/dist/nodes/Polar/resources/discount/create.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/delete.js +15 -0
- package/dist/nodes/Polar/resources/discount/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/get.js +15 -0
- package/dist/nodes/Polar/resources/discount/get.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/getAll.js +18 -0
- package/dist/nodes/Polar/resources/discount/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/index.js +62 -0
- package/dist/nodes/Polar/resources/discount/index.js.map +1 -0
- package/dist/nodes/Polar/resources/discount/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/discount/update.js +124 -0
- package/dist/nodes/Polar/resources/discount/update.js.map +1 -0
- package/dist/nodes/Polar/resources/dispute/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/dispute/get.js +15 -0
- package/dist/nodes/Polar/resources/dispute/get.js.map +1 -0
- package/dist/nodes/Polar/resources/dispute/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/dispute/getAll.js +43 -0
- package/dist/nodes/Polar/resources/dispute/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/dispute/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/dispute/index.js +35 -0
- package/dist/nodes/Polar/resources/dispute/index.js.map +1 -0
- package/dist/nodes/Polar/resources/event/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/event/get.js +15 -0
- package/dist/nodes/Polar/resources/event/get.js.map +1 -0
- package/dist/nodes/Polar/resources/event/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/event/getAll.js +98 -0
- package/dist/nodes/Polar/resources/event/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/event/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/event/index.js +53 -0
- package/dist/nodes/Polar/resources/event/index.js.map +1 -0
- package/dist/nodes/Polar/resources/event/ingest.d.ts +2 -0
- package/dist/nodes/Polar/resources/event/ingest.js +112 -0
- package/dist/nodes/Polar/resources/event/ingest.js.map +1 -0
- package/dist/nodes/Polar/resources/event/listNames.d.ts +2 -0
- package/dist/nodes/Polar/resources/event/listNames.js +52 -0
- package/dist/nodes/Polar/resources/event/listNames.js.map +1 -0
- package/dist/nodes/Polar/resources/eventType/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/eventType/getAll.js +68 -0
- package/dist/nodes/Polar/resources/eventType/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/eventType/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/eventType/index.js +35 -0
- package/dist/nodes/Polar/resources/eventType/index.js.map +1 -0
- package/dist/nodes/Polar/resources/eventType/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/eventType/update.js +34 -0
- package/dist/nodes/Polar/resources/eventType/update.js.map +1 -0
- package/dist/nodes/Polar/resources/file/completeUpload.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/completeUpload.js +72 -0
- package/dist/nodes/Polar/resources/file/completeUpload.js.map +1 -0
- package/dist/nodes/Polar/resources/file/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/create.js +118 -0
- package/dist/nodes/Polar/resources/file/create.js.map +1 -0
- package/dist/nodes/Polar/resources/file/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/delete.js +15 -0
- package/dist/nodes/Polar/resources/file/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/file/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/getAll.js +34 -0
- package/dist/nodes/Polar/resources/file/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/file/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/index.js +62 -0
- package/dist/nodes/Polar/resources/file/index.js.map +1 -0
- package/dist/nodes/Polar/resources/file/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/file/update.js +39 -0
- package/dist/nodes/Polar/resources/file/update.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/activate.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/activate.js +39 -0
- package/dist/nodes/Polar/resources/licenseKey/activate.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/deactivate.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/deactivate.js +35 -0
- package/dist/nodes/Polar/resources/licenseKey/deactivate.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/get.js +16 -0
- package/dist/nodes/Polar/resources/licenseKey/get.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/getActivation.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/getActivation.js +23 -0
- package/dist/nodes/Polar/resources/licenseKey/getActivation.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/getAll.js +38 -0
- package/dist/nodes/Polar/resources/licenseKey/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/index.js +85 -0
- package/dist/nodes/Polar/resources/licenseKey/index.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/update.js +70 -0
- package/dist/nodes/Polar/resources/licenseKey/update.js.map +1 -0
- package/dist/nodes/Polar/resources/licenseKey/validate.d.ts +2 -0
- package/dist/nodes/Polar/resources/licenseKey/validate.js +69 -0
- package/dist/nodes/Polar/resources/licenseKey/validate.js.map +1 -0
- package/dist/nodes/Polar/resources/member/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/create.js +64 -0
- package/dist/nodes/Polar/resources/member/create.js.map +1 -0
- package/dist/nodes/Polar/resources/member/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/delete.js +15 -0
- package/dist/nodes/Polar/resources/member/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/member/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/get.js +15 -0
- package/dist/nodes/Polar/resources/member/get.js.map +1 -0
- package/dist/nodes/Polar/resources/member/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/getAll.js +45 -0
- package/dist/nodes/Polar/resources/member/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/member/getByExternalId.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/getByExternalId.js +41 -0
- package/dist/nodes/Polar/resources/member/getByExternalId.js.map +1 -0
- package/dist/nodes/Polar/resources/member/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/index.js +71 -0
- package/dist/nodes/Polar/resources/member/index.js.map +1 -0
- package/dist/nodes/Polar/resources/member/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/member/update.js +45 -0
- package/dist/nodes/Polar/resources/member/update.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/create.js +177 -0
- package/dist/nodes/Polar/resources/meter/create.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/get.js +15 -0
- package/dist/nodes/Polar/resources/meter/get.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/getAll.js +35 -0
- package/dist/nodes/Polar/resources/meter/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/getQuantities.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/getQuantities.js +97 -0
- package/dist/nodes/Polar/resources/meter/getQuantities.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/index.js +62 -0
- package/dist/nodes/Polar/resources/meter/index.js.map +1 -0
- package/dist/nodes/Polar/resources/meter/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/meter/update.js +190 -0
- package/dist/nodes/Polar/resources/meter/update.js.map +1 -0
- package/dist/nodes/Polar/resources/order/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/create.js +51 -0
- package/dist/nodes/Polar/resources/order/create.js.map +1 -0
- package/dist/nodes/Polar/resources/order/finalize.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/finalize.js +31 -0
- package/dist/nodes/Polar/resources/order/finalize.js.map +1 -0
- package/dist/nodes/Polar/resources/order/generateInvoice.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/generateInvoice.js +16 -0
- package/dist/nodes/Polar/resources/order/generateInvoice.js.map +1 -0
- package/dist/nodes/Polar/resources/order/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/get.js +15 -0
- package/dist/nodes/Polar/resources/order/get.js.map +1 -0
- package/dist/nodes/Polar/resources/order/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/getAll.js +101 -0
- package/dist/nodes/Polar/resources/order/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/order/getInvoice.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/getInvoice.js +15 -0
- package/dist/nodes/Polar/resources/order/getInvoice.js.map +1 -0
- package/dist/nodes/Polar/resources/order/getReceipt.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/getReceipt.js +15 -0
- package/dist/nodes/Polar/resources/order/getReceipt.js.map +1 -0
- package/dist/nodes/Polar/resources/order/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/index.js +89 -0
- package/dist/nodes/Polar/resources/order/index.js.map +1 -0
- package/dist/nodes/Polar/resources/order/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/order/update.js +31 -0
- package/dist/nodes/Polar/resources/order/update.js.map +1 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/create.js +46 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/create.js.map +1 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/delete.js +16 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/getAll.js +7 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/index.js +63 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/index.js.map +1 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/update.js +43 -0
- package/dist/nodes/Polar/resources/organizationAccessToken/update.js.map +1 -0
- package/dist/nodes/Polar/resources/payment/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/payment/get.js +15 -0
- package/dist/nodes/Polar/resources/payment/get.js.map +1 -0
- package/dist/nodes/Polar/resources/payment/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/payment/getAll.js +72 -0
- package/dist/nodes/Polar/resources/payment/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/payment/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/payment/index.js +35 -0
- package/dist/nodes/Polar/resources/payment/index.js.map +1 -0
- package/dist/nodes/Polar/resources/product/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/create.js +259 -0
- package/dist/nodes/Polar/resources/product/create.js.map +1 -0
- package/dist/nodes/Polar/resources/product/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/get.js +15 -0
- package/dist/nodes/Polar/resources/product/get.js.map +1 -0
- package/dist/nodes/Polar/resources/product/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/getAll.js +68 -0
- package/dist/nodes/Polar/resources/product/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/product/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/index.js +62 -0
- package/dist/nodes/Polar/resources/product/index.js.map +1 -0
- package/dist/nodes/Polar/resources/product/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/update.js +102 -0
- package/dist/nodes/Polar/resources/product/update.js.map +1 -0
- package/dist/nodes/Polar/resources/product/updateBenefits.d.ts +2 -0
- package/dist/nodes/Polar/resources/product/updateBenefits.js +26 -0
- package/dist/nodes/Polar/resources/product/updateBenefits.js.map +1 -0
- package/dist/nodes/Polar/resources/refund/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/refund/create.js +71 -0
- package/dist/nodes/Polar/resources/refund/create.js.map +1 -0
- package/dist/nodes/Polar/resources/refund/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/refund/getAll.js +55 -0
- package/dist/nodes/Polar/resources/refund/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/refund/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/refund/index.js +35 -0
- package/dist/nodes/Polar/resources/refund/index.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/cancel.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/cancel.js +63 -0
- package/dist/nodes/Polar/resources/subscription/cancel.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.js +17 -0
- package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/create.js +41 -0
- package/dist/nodes/Polar/resources/subscription/create.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/get.js +15 -0
- package/dist/nodes/Polar/resources/subscription/get.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/getAll.js +106 -0
- package/dist/nodes/Polar/resources/subscription/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/index.js +116 -0
- package/dist/nodes/Polar/resources/subscription/index.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/pause.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/pause.js +40 -0
- package/dist/nodes/Polar/resources/subscription/pause.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/resume.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/resume.js +17 -0
- package/dist/nodes/Polar/resources/subscription/resume.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/revoke.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/revoke.js +16 -0
- package/dist/nodes/Polar/resources/subscription/revoke.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/update.js +62 -0
- package/dist/nodes/Polar/resources/subscription/update.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.js +25 -0
- package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.js.map +1 -0
- package/dist/nodes/Polar/resources/subscription/updateSeats.d.ts +2 -0
- package/dist/nodes/Polar/resources/subscription/updateSeats.js +38 -0
- package/dist/nodes/Polar/resources/subscription/updateSeats.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookDelivery/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookDelivery/getAll.js +82 -0
- package/dist/nodes/Polar/resources/webhookDelivery/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookDelivery/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookDelivery/index.js +40 -0
- package/dist/nodes/Polar/resources/webhookDelivery/index.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookDelivery/redeliver.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookDelivery/redeliver.js +16 -0
- package/dist/nodes/Polar/resources/webhookDelivery/redeliver.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/create.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/create.js +62 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/create.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/delete.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/delete.js +15 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/delete.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/get.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/get.js +15 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/get.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/getAll.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/getAll.js +7 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/getAll.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/index.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/index.js +91 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/index.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.js +16 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.js.map +1 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/update.d.ts +2 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/update.js +72 -0
- package/dist/nodes/Polar/resources/webhookEndpoint/update.js.map +1 -0
- package/dist/nodes/Polar/shared/descriptions.d.ts +13 -0
- package/dist/nodes/Polar/shared/descriptions.js +346 -0
- package/dist/nodes/Polar/shared/descriptions.js.map +1 -0
- package/dist/nodes/Polar/shared/transport.d.ts +2 -0
- package/dist/nodes/Polar/shared/transport.js +16 -0
- package/dist/nodes/Polar/shared/transport.js.map +1 -0
- package/dist/nodes/Polar/shared/utils.d.ts +3 -0
- package/dist/nodes/Polar/shared/utils.js +13 -0
- package/dist/nodes/Polar/shared/utils.js.map +1 -0
- package/dist/nodes/PolarTrigger/PolarTrigger.node.d.ts +12 -0
- package/dist/nodes/PolarTrigger/PolarTrigger.node.js +182 -0
- package/dist/nodes/PolarTrigger/PolarTrigger.node.js.map +1 -0
- package/dist/nodes/PolarTrigger/PolarTrigger.node.json +11 -0
- package/dist/package.json +58 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerUpdateDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const showById = { resource: ['customer'], operation: ['update'] };
|
|
6
|
+
const showByExternalId = { resource: ['customer'], operation: ['updateExternal'] };
|
|
7
|
+
const showBoth = { resource: ['customer'], operation: ['update', 'updateExternal'] };
|
|
8
|
+
exports.customerUpdateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Customer ID',
|
|
11
|
+
name: 'customerId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: { show: showById },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'External Customer ID',
|
|
19
|
+
name: 'externalCustomerId',
|
|
20
|
+
type: 'string',
|
|
21
|
+
default: '',
|
|
22
|
+
required: true,
|
|
23
|
+
displayOptions: { show: showByExternalId },
|
|
24
|
+
},
|
|
25
|
+
(0, descriptions_1.billingAddressField)('billingAddress', 'billing_address', showBoth),
|
|
26
|
+
(0, descriptions_1.metadataField)('metadata', 'metadata', 'Metadata', showBoth),
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Update Fields',
|
|
29
|
+
name: 'updateFields',
|
|
30
|
+
type: 'collection',
|
|
31
|
+
placeholder: 'Add Field',
|
|
32
|
+
default: {},
|
|
33
|
+
displayOptions: { show: showBoth },
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Customer Type',
|
|
37
|
+
name: 'type',
|
|
38
|
+
type: 'options',
|
|
39
|
+
options: [
|
|
40
|
+
{ name: 'Individual', value: 'individual' },
|
|
41
|
+
{ name: 'Team', value: 'team' },
|
|
42
|
+
],
|
|
43
|
+
default: 'individual',
|
|
44
|
+
routing: { request: { body: { type: '={{$value}}' } } },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Email',
|
|
48
|
+
name: 'email',
|
|
49
|
+
type: 'string',
|
|
50
|
+
placeholder: 'name@email.com',
|
|
51
|
+
default: '',
|
|
52
|
+
routing: { request: { body: { email: '={{$value}}' } } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'External ID',
|
|
56
|
+
name: 'external_id',
|
|
57
|
+
type: 'string',
|
|
58
|
+
default: '',
|
|
59
|
+
routing: { request: { body: { external_id: '={{$value}}' } } },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Locale',
|
|
63
|
+
name: 'locale',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: '',
|
|
66
|
+
routing: { request: { body: { locale: '={{$value}}' } } },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Name',
|
|
70
|
+
name: 'name',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
routing: { request: { body: { name: '={{$value}}' } } },
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Tax ID',
|
|
77
|
+
name: 'tax_id',
|
|
78
|
+
type: 'string',
|
|
79
|
+
default: '',
|
|
80
|
+
routing: { request: { body: { tax_id: '={{$value}}' } } },
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customer/update.ts"],"names":[],"mappings":";;;AACA,4DAA+E;AAE/E,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AACnE,MAAM,gBAAgB,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC;AACnF,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,CAAC;AAExE,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClC;IACD;QACC,WAAW,EAAE,sBAAsB;QACn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I,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;aAC9D;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE;aACzD;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE;aACvD;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE;aACzD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerMeterGetDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerMeter'], operation: ['get'] };
|
|
5
|
+
exports.customerMeterGetDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Customer Meter ID',
|
|
8
|
+
name: 'customerMeterId',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
displayOptions: { show },
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerMeter/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;AAEpD,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;CACD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerMeterGetAllDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const show = { resource: ['customerMeter'], operation: ['getAll'] };
|
|
6
|
+
exports.customerMeterGetAllDescription = [
|
|
7
|
+
...(0, descriptions_1.paginationProperties)(show),
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Filters',
|
|
10
|
+
name: 'filters',
|
|
11
|
+
type: 'collection',
|
|
12
|
+
placeholder: 'Add Filter',
|
|
13
|
+
default: {},
|
|
14
|
+
displayOptions: { show },
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Customer ID',
|
|
18
|
+
name: 'customer_id',
|
|
19
|
+
type: 'string',
|
|
20
|
+
default: '',
|
|
21
|
+
routing: { request: { qs: { customer_id: '={{$value}}' } } },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'External Customer ID',
|
|
25
|
+
name: 'external_customer_id',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
routing: { request: { qs: { external_customer_id: '={{$value}}' } } },
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Meter ID',
|
|
32
|
+
name: 'meter_id',
|
|
33
|
+
type: 'string',
|
|
34
|
+
default: '',
|
|
35
|
+
routing: { request: { qs: { meter_id: '={{$value}}' } } },
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerMeter/getAll.ts"],"names":[],"mappings":";;;AACA,4DAAiE;AAEjE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEvD,QAAA,8BAA8B,GAAsB;IAChE,GAAG,IAAA,mCAAoB,EAAC,IAAI,CAAC;IAC7B;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;aAC5D;YACD;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,aAAa,EAAE,EAAE,EAAE;aACrE;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE;aACzD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerMeterDescription = void 0;
|
|
4
|
+
const getAll_1 = require("./getAll");
|
|
5
|
+
const get_1 = require("./get");
|
|
6
|
+
const showOnlyForCustomerMeter = { resource: ['customerMeter'] };
|
|
7
|
+
exports.customerMeterDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: { show: showOnlyForCustomerMeter },
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Get',
|
|
17
|
+
value: 'get',
|
|
18
|
+
action: 'Get a customer meter',
|
|
19
|
+
description: 'Get a single customer meter by ID',
|
|
20
|
+
routing: { request: { method: 'GET', url: '=/customer-meters/{{$parameter["customerMeterId"]}}' } },
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
action: 'Get many customer meters',
|
|
26
|
+
description: 'Get many customer meters',
|
|
27
|
+
routing: { request: { method: 'GET', url: '=/customer-meters/' } },
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
default: 'getAll',
|
|
31
|
+
},
|
|
32
|
+
...getAll_1.customerMeterGetAllDescription,
|
|
33
|
+
...get_1.customerMeterGetDescription,
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerMeter/index.ts"],"names":[],"mappings":";;;AACA,qCAA0D;AAC1D,+BAAoD;AAEpD,MAAM,wBAAwB,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAEpD,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;QAClD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,sBAAsB;gBAC9B,WAAW,EAAE,mCAAmC;gBAChD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,qDAAqD,EAAE,EAAE;aACnG;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,0BAA0B;gBACvC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,EAAE;aAClE;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,uCAA8B;IACjC,GAAG,iCAA2B;CAC9B,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatAssignDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['assign'] };
|
|
5
|
+
exports.customerSeatAssignDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subscription ID',
|
|
8
|
+
name: 'subscriptionId',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: { show },
|
|
12
|
+
description: 'The subscription to assign a seat from (for recurring seats). Exactly one of Subscription ID / Order ID is required.',
|
|
13
|
+
routing: { send: { type: 'body', property: 'subscription_id', value: '={{ $value || undefined }}' } },
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
displayName: 'Order ID',
|
|
17
|
+
name: 'orderId',
|
|
18
|
+
type: 'string',
|
|
19
|
+
default: '',
|
|
20
|
+
displayOptions: { show },
|
|
21
|
+
description: 'The order to assign a seat from (for one-time purchase seats). Exactly one of Subscription ID / Order ID is required.',
|
|
22
|
+
routing: { send: { type: 'body', property: 'order_id', value: '={{ $value || undefined }}' } },
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Email',
|
|
26
|
+
name: 'email',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
placeholder: 'name@email.com',
|
|
30
|
+
displayOptions: { show },
|
|
31
|
+
description: 'Email of the customer to assign the seat to. Provide this and/or one of the ID fields below to identify the recipient.',
|
|
32
|
+
routing: { send: { type: 'body', property: 'email', value: '={{ $value || undefined }}' } },
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Customer ID',
|
|
36
|
+
name: 'customerId',
|
|
37
|
+
type: 'string',
|
|
38
|
+
default: '',
|
|
39
|
+
displayOptions: { show },
|
|
40
|
+
description: 'Customer ID for the seat assignment',
|
|
41
|
+
routing: { send: { type: 'body', property: 'customer_id', value: '={{ $value || undefined }}' } },
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'External Customer ID',
|
|
45
|
+
name: 'externalCustomerId',
|
|
46
|
+
type: 'string',
|
|
47
|
+
default: '',
|
|
48
|
+
displayOptions: { show },
|
|
49
|
+
description: 'External customer ID for the seat assignment',
|
|
50
|
+
routing: { send: { type: 'body', property: 'external_customer_id', value: '={{ $value || undefined }}' } },
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Member ID',
|
|
54
|
+
name: 'memberId',
|
|
55
|
+
type: 'string',
|
|
56
|
+
default: '',
|
|
57
|
+
displayOptions: { show },
|
|
58
|
+
description: 'Member ID for the seat assignment',
|
|
59
|
+
routing: { send: { type: 'body', property: 'member_id', value: '={{ $value || undefined }}' } },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'External Member ID',
|
|
63
|
+
name: 'externalMemberId',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: '',
|
|
66
|
+
displayOptions: { show },
|
|
67
|
+
description: 'Can be used alone (look up an existing member) or together with Email (create/validate a new member)',
|
|
68
|
+
routing: { send: { type: 'body', property: 'external_member_id', value: '={{ $value || undefined }}' } },
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Immediate Claim',
|
|
72
|
+
name: 'immediateClaim',
|
|
73
|
+
type: 'boolean',
|
|
74
|
+
default: false,
|
|
75
|
+
displayOptions: { show },
|
|
76
|
+
description: 'Whether to immediately claim the seat without sending an invitation email (API-only feature)',
|
|
77
|
+
routing: { send: { type: 'body', property: 'immediate_claim' } },
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Metadata (JSON)',
|
|
81
|
+
name: 'metadataJson',
|
|
82
|
+
type: 'string',
|
|
83
|
+
typeOptions: { rows: 4 },
|
|
84
|
+
default: '',
|
|
85
|
+
displayOptions: { show },
|
|
86
|
+
description: 'Additional metadata for the seat, as a JSON object (max 10 keys, 1KB total)',
|
|
87
|
+
routing: { send: { type: 'body', property: 'metadata', value: '={{ $value ? JSON.parse($value) : undefined }}' } },
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=assign.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assign.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/assign.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEtD,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,c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E;QAC1F,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,gDAAgD,EAAE,EAAE;KAClH;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatClaimDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['claim'] };
|
|
5
|
+
exports.customerSeatClaimDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Invitation Token',
|
|
8
|
+
name: 'invitationToken',
|
|
9
|
+
type: 'string',
|
|
10
|
+
typeOptions: { password: true },
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
displayOptions: { show },
|
|
14
|
+
description: 'This endpoint requires no authentication on Polar’s side — it is meant for the invited person’s own client, and works regardless of whether the configured credential is valid',
|
|
15
|
+
routing: { send: { type: 'body', property: 'invitation_token' } },
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=claim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claim.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/claim.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAErD,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,WAAW,EACV,gLAAgL;QACjL,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE;KACjE;CACD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatGetAllDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['getAll'] };
|
|
5
|
+
exports.customerSeatGetAllDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Filters',
|
|
8
|
+
name: 'filters',
|
|
9
|
+
type: 'collection',
|
|
10
|
+
placeholder: 'Add Filter',
|
|
11
|
+
default: {},
|
|
12
|
+
displayOptions: { show },
|
|
13
|
+
description: 'This response is not paginated — it returns every seat for the given subscription or order at once, along with the total and available seat counts',
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
displayName: 'Order ID',
|
|
17
|
+
name: 'order_id',
|
|
18
|
+
type: 'string',
|
|
19
|
+
default: '',
|
|
20
|
+
description: 'Filter by the order the seats belong to (for one-time purchase seats)',
|
|
21
|
+
routing: { request: { qs: { order_id: '={{$value}}' } } },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Subscription ID',
|
|
25
|
+
name: 'subscription_id',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
description: 'Filter by the subscription the seats belong to (for recurring seats)',
|
|
29
|
+
routing: { request: { qs: { subscription_id: '={{$value}}' } } },
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEtD,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,WAAW,EACV,oJAAoJ;QACrJ,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;gBACpF,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE;aACzD;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sEAAsE;gBACnF,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,EAAE,EAAE;aAChE;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatGetClaimInfoDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['getClaimInfo'] };
|
|
5
|
+
exports.customerSeatGetClaimInfoDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Invitation Token',
|
|
8
|
+
name: 'invitationToken',
|
|
9
|
+
type: 'string',
|
|
10
|
+
typeOptions: { password: true },
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
displayOptions: { show },
|
|
14
|
+
description: 'This endpoint requires no authentication on Polar’s side — it is meant for the invited person’s own client, and works regardless of whether the configured credential is valid',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
//# sourceMappingURL=getClaimInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClaimInfo.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/getClaimInfo.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AAE5D,QAAA,mCAAmC,GAAsB;IACrE;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,WAAW,EACV,gLAAgL;KACjL;CACD,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatDescription = void 0;
|
|
4
|
+
const getAll_1 = require("./getAll");
|
|
5
|
+
const assign_1 = require("./assign");
|
|
6
|
+
const revoke_1 = require("./revoke");
|
|
7
|
+
const resendInvitation_1 = require("./resendInvitation");
|
|
8
|
+
const getClaimInfo_1 = require("./getClaimInfo");
|
|
9
|
+
const claim_1 = require("./claim");
|
|
10
|
+
const showOnlyForCustomerSeat = { resource: ['customerSeat'] };
|
|
11
|
+
exports.customerSeatDescription = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Operation',
|
|
14
|
+
name: 'operation',
|
|
15
|
+
type: 'options',
|
|
16
|
+
noDataExpression: true,
|
|
17
|
+
displayOptions: { show: showOnlyForCustomerSeat },
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Assign Seat',
|
|
21
|
+
value: 'assign',
|
|
22
|
+
action: 'Assign a seat',
|
|
23
|
+
description: 'Assign a seat to a customer or member',
|
|
24
|
+
routing: { request: { method: 'POST', url: '=/customer-seats' } },
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Claim Seat',
|
|
28
|
+
value: 'claim',
|
|
29
|
+
action: 'Claim a seat',
|
|
30
|
+
description: 'Claim a seat using an invitation token (no authentication required)',
|
|
31
|
+
routing: { request: { method: 'POST', url: '=/customer-seats/claim' } },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Claim Info',
|
|
35
|
+
value: 'getClaimInfo',
|
|
36
|
+
action: 'Get seat claim info',
|
|
37
|
+
description: 'Get read-only information about a seat claim invitation (no authentication required)',
|
|
38
|
+
routing: { request: { method: 'GET', url: '=/customer-seats/claim/{{$parameter["invitationToken"]}}' } },
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Many',
|
|
42
|
+
value: 'getAll',
|
|
43
|
+
action: 'Get many seats',
|
|
44
|
+
description: 'List seats for a subscription or order',
|
|
45
|
+
routing: { request: { method: 'GET', url: '=/customer-seats' } },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Resend Invitation',
|
|
49
|
+
value: 'resendInvitation',
|
|
50
|
+
action: 'Resend a seat invitation',
|
|
51
|
+
description: 'Resend the invitation email for a pending seat',
|
|
52
|
+
routing: { request: { method: 'POST', url: '=/customer-seats/{{$parameter["seatId"]}}/resend' } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Revoke Seat',
|
|
56
|
+
value: 'revoke',
|
|
57
|
+
action: 'Revoke a seat',
|
|
58
|
+
description: 'Revoke an assigned or pending seat',
|
|
59
|
+
routing: { request: { method: 'DELETE', url: '=/customer-seats/{{$parameter["seatId"]}}' } },
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
default: 'getAll',
|
|
63
|
+
},
|
|
64
|
+
...getAll_1.customerSeatGetAllDescription,
|
|
65
|
+
...assign_1.customerSeatAssignDescription,
|
|
66
|
+
...revoke_1.customerSeatRevokeDescription,
|
|
67
|
+
...resendInvitation_1.customerSeatResendInvitationDescription,
|
|
68
|
+
...getClaimInfo_1.customerSeatGetClaimInfoDescription,
|
|
69
|
+
...claim_1.customerSeatClaimDescription,
|
|
70
|
+
];
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/index.ts"],"names":[],"mappings":";;;AACA,qCAAyD;AACzD,qCAAyD;AACzD,qCAAyD;AACzD,yDAA6E;AAC7E,iDAAqE;AACrE,mCAAuD;AAEvD,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AAElD,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,uCAAuC;gBACpD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,EAAE,EAAE;aACjE;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,qEAAqE;gBAClF,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,wBAAwB,EAAE,EAAE;aACvE;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,cAAc;gBACrB,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EAAE,sFAAsF;gBACnG,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,0DAA0D,EAAE,EAAE;aACxG;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,wCAAwC;gBACrD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,kBAAkB,EAAE,EAAE;aAChE;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,gDAAgD;gBAC7D,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,kDAAkD,EAAE,EAAE;aACjG;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,oCAAoC;gBACjD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,2CAA2C,EAAE,EAAE;aAC5F;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,sCAA6B;IAChC,GAAG,sCAA6B;IAChC,GAAG,sCAA6B;IAChC,GAAG,0DAAuC;IAC1C,GAAG,kDAAmC;IACtC,GAAG,oCAA4B;CAC/B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatResendInvitationDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['resendInvitation'] };
|
|
5
|
+
exports.customerSeatResendInvitationDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Seat ID',
|
|
8
|
+
name: 'seatId',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
displayOptions: { show },
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=resendInvitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resendInvitation.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/resendInvitation.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC;AAEhE,QAAA,uCAAuC,GAAsB;IACzE;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSeatRevokeDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSeat'], operation: ['revoke'] };
|
|
5
|
+
exports.customerSeatRevokeDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Seat ID',
|
|
8
|
+
name: 'seatId',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
displayOptions: { show },
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=revoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoke.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSeat/revoke.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEtD,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;CACD,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerSessionCreateDescription = void 0;
|
|
4
|
+
const show = { resource: ['customerSession'], operation: ['create'] };
|
|
5
|
+
exports.customerSessionCreateDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Customer ID',
|
|
8
|
+
name: 'customerId',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: { show },
|
|
12
|
+
description: 'Provide exactly one of Customer ID / External Customer ID to identify who this session is for',
|
|
13
|
+
routing: { send: { type: 'body', property: 'customer_id', value: '={{ $value || undefined }}' } },
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
displayName: 'External Customer ID',
|
|
17
|
+
name: 'externalCustomerId',
|
|
18
|
+
type: 'string',
|
|
19
|
+
default: '',
|
|
20
|
+
displayOptions: { show },
|
|
21
|
+
description: 'Provide exactly one of Customer ID / External Customer ID to identify who this session is for',
|
|
22
|
+
routing: { send: { type: 'body', property: 'external_customer_id', value: '={{ $value || undefined }}' } },
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Member ID',
|
|
26
|
+
name: 'memberId',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
displayOptions: { show },
|
|
30
|
+
description: 'ID of the member to create a session for. When not provided and the organization has member management enabled, the owner member of the customer is used for individual customers.',
|
|
31
|
+
routing: { send: { type: 'body', property: 'member_id', value: '={{ $value || undefined }}' } },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'External Member ID',
|
|
35
|
+
name: 'externalMemberId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: '',
|
|
38
|
+
displayOptions: { show },
|
|
39
|
+
description: 'Alternative to Member ID',
|
|
40
|
+
routing: { send: { type: 'body', property: 'external_member_id', value: '={{ $value || undefined }}' } },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Return URL',
|
|
44
|
+
name: 'returnUrl',
|
|
45
|
+
type: 'string',
|
|
46
|
+
default: '',
|
|
47
|
+
displayOptions: { show },
|
|
48
|
+
description: 'When set, a back button is shown in the customer portal to return to this URL',
|
|
49
|
+
routing: { send: { type: 'body', property: 'return_url', value: '={{ $value || undefined }}' } },
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/customerSession/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEzD,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,WAAW,EAAE,+FAA+F;QAC5G,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,4BAA4B,EAAE,EAAE;KACjG;IACD;QACC,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,WAAW,EAAE,+FAA+F;QA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