@polar-sh/sdk 0.29.0 → 0.29.2
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/FUNCTIONS.md +5 -1
- package/README.md +48 -12
- package/bin/mcp-server.js +866 -148
- package/bin/mcp-server.js.map +29 -14
- package/dist/commonjs/funcs/customersGetState.d.ts +27 -0
- package/dist/commonjs/funcs/customersGetState.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGetState.js +121 -0
- package/dist/commonjs/funcs/customersGetState.js.map +1 -0
- package/dist/commonjs/funcs/customersGetStateExternal.d.ts +27 -0
- package/dist/commonjs/funcs/customersGetStateExternal.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGetStateExternal.js +121 -0
- package/dist/commonjs/funcs/customersGetStateExternal.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/customersGetState.d.ts +7 -0
- package/dist/commonjs/mcp-server/tools/customersGetState.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/customersGetState.js +40 -0
- package/dist/commonjs/mcp-server/tools/customersGetState.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/customersGetStateExternal.d.ts +7 -0
- package/dist/commonjs/mcp-server/tools/customersGetStateExternal.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/customersGetStateExternal.js +40 -0
- package/dist/commonjs/mcp-server/tools/customersGetStateExternal.js.map +1 -0
- package/dist/commonjs/models/components/customer.d.ts +11 -5
- package/dist/commonjs/models/components/customer.d.ts.map +1 -1
- package/dist/commonjs/models/components/customer.js +2 -2
- package/dist/commonjs/models/components/customer.js.map +1 -1
- package/dist/commonjs/models/components/customercreate.d.ts +3 -0
- package/dist/commonjs/models/components/customercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customercreate.js.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.d.ts +39 -0
- package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customerstate.d.ts +143 -0
- package/dist/commonjs/models/components/customerstate.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerstate.js +162 -0
- package/dist/commonjs/models/components/customerstate.js.map +1 -0
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +86 -0
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerstatebenefitgrant.js +141 -0
- package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -0
- package/dist/commonjs/models/components/customerstatesubscription.d.ts +162 -0
- package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerstatesubscription.js +193 -0
- package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -0
- package/dist/commonjs/models/components/customersubscription.d.ts +9 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customerupdate.d.ts +3 -0
- package/dist/commonjs/models/components/customerupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdate.js.map +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.d.ts +11 -5
- package/dist/commonjs/models/components/licensekeycustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.js +2 -2
- package/dist/commonjs/models/components/licensekeycustomer.js.map +1 -1
- package/dist/commonjs/models/components/ordercustomer.d.ts +11 -5
- package/dist/commonjs/models/components/ordercustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordercustomer.js +2 -2
- package/dist/commonjs/models/components/ordercustomer.js.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.d.ts +39 -0
- package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +39 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptioncustomer.d.ts +11 -5
- package/dist/commonjs/models/components/subscriptioncustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptioncustomer.js +2 -2
- package/dist/commonjs/models/components/subscriptioncustomer.js.map +1 -1
- package/dist/commonjs/models/components/webhookcustomercreatedpayload.d.ts +47 -0
- package/dist/commonjs/models/components/webhookcustomercreatedpayload.d.ts.map +1 -0
- package/dist/commonjs/models/components/webhookcustomercreatedpayload.js +62 -0
- package/dist/commonjs/models/components/webhookcustomercreatedpayload.js.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerdeletedpayload.d.ts +42 -0
- package/dist/commonjs/models/components/webhookcustomerdeletedpayload.d.ts.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerdeletedpayload.js +62 -0
- package/dist/commonjs/models/components/webhookcustomerdeletedpayload.js.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerstatechangedpayload.d.ts +53 -0
- package/dist/commonjs/models/components/webhookcustomerstatechangedpayload.d.ts.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerstatechangedpayload.js +62 -0
- package/dist/commonjs/models/components/webhookcustomerstatechangedpayload.js.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerupdatedpayload.d.ts +46 -0
- package/dist/commonjs/models/components/webhookcustomerupdatedpayload.d.ts.map +1 -0
- package/dist/commonjs/models/components/webhookcustomerupdatedpayload.js +62 -0
- package/dist/commonjs/models/components/webhookcustomerupdatedpayload.js.map +1 -0
- package/dist/commonjs/models/components/webhookordercreatedpayload.d.ts +7 -0
- package/dist/commonjs/models/components/webhookordercreatedpayload.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookordercreatedpayload.js.map +1 -1
- package/dist/commonjs/models/components/webhooksubscriptioncreatedpayload.d.ts +2 -0
- package/dist/commonjs/models/components/webhooksubscriptioncreatedpayload.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhooksubscriptioncreatedpayload.js.map +1 -1
- package/dist/commonjs/models/operations/customersgetstate.d.ts +32 -0
- package/dist/commonjs/models/operations/customersgetstate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customersgetstate.js +59 -0
- package/dist/commonjs/models/operations/customersgetstate.js.map +1 -0
- package/dist/commonjs/models/operations/customersgetstateexternal.d.ts +32 -0
- package/dist/commonjs/models/operations/customersgetstateexternal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customersgetstateexternal.js +68 -0
- package/dist/commonjs/models/operations/customersgetstateexternal.js.map +1 -0
- package/dist/commonjs/sdk/customers.d.ts +33 -0
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.js +36 -0
- package/dist/commonjs/sdk/customers.js.map +1 -1
- package/dist/commonjs/webhooks.d.ts +2 -2
- package/dist/commonjs/webhooks.d.ts.map +1 -1
- package/dist/commonjs/webhooks.js +36 -24
- package/dist/commonjs/webhooks.js.map +1 -1
- package/dist/esm/funcs/customersGetState.d.ts +27 -0
- package/dist/esm/funcs/customersGetState.d.ts.map +1 -0
- package/dist/esm/funcs/customersGetState.js +95 -0
- package/dist/esm/funcs/customersGetState.js.map +1 -0
- package/dist/esm/funcs/customersGetStateExternal.d.ts +27 -0
- package/dist/esm/funcs/customersGetStateExternal.d.ts.map +1 -0
- package/dist/esm/funcs/customersGetStateExternal.js +95 -0
- package/dist/esm/funcs/customersGetStateExternal.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/customersGetState.d.ts +7 -0
- package/dist/esm/mcp-server/tools/customersGetState.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/customersGetState.js +37 -0
- package/dist/esm/mcp-server/tools/customersGetState.js.map +1 -0
- package/dist/esm/mcp-server/tools/customersGetStateExternal.d.ts +7 -0
- package/dist/esm/mcp-server/tools/customersGetStateExternal.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/customersGetStateExternal.js +37 -0
- package/dist/esm/mcp-server/tools/customersGetStateExternal.js.map +1 -0
- package/dist/esm/models/components/customer.d.ts +11 -5
- package/dist/esm/models/components/customer.d.ts.map +1 -1
- package/dist/esm/models/components/customer.js +2 -2
- package/dist/esm/models/components/customer.js.map +1 -1
- package/dist/esm/models/components/customercreate.d.ts +3 -0
- package/dist/esm/models/components/customercreate.d.ts.map +1 -1
- package/dist/esm/models/components/customercreate.js.map +1 -1
- package/dist/esm/models/components/customerordersubscription.d.ts +39 -0
- package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerordersubscription.js.map +1 -1
- package/dist/esm/models/components/customerstate.d.ts +143 -0
- package/dist/esm/models/components/customerstate.d.ts.map +1 -0
- package/dist/esm/models/components/customerstate.js +130 -0
- package/dist/esm/models/components/customerstate.js.map +1 -0
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts +86 -0
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -0
- package/dist/esm/models/components/customerstatebenefitgrant.js +111 -0
- package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -0
- package/dist/esm/models/components/customerstatesubscription.d.ts +162 -0
- package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -0
- package/dist/esm/models/components/customerstatesubscription.js +161 -0
- package/dist/esm/models/components/customerstatesubscription.js.map +1 -0
- package/dist/esm/models/components/customersubscription.d.ts +9 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/customerupdate.d.ts +3 -0
- package/dist/esm/models/components/customerupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdate.js.map +1 -1
- package/dist/esm/models/components/licensekeycustomer.d.ts +11 -5
- package/dist/esm/models/components/licensekeycustomer.d.ts.map +1 -1
- package/dist/esm/models/components/licensekeycustomer.js +2 -2
- package/dist/esm/models/components/licensekeycustomer.js.map +1 -1
- package/dist/esm/models/components/ordercustomer.d.ts +11 -5
- package/dist/esm/models/components/ordercustomer.d.ts.map +1 -1
- package/dist/esm/models/components/ordercustomer.js +2 -2
- package/dist/esm/models/components/ordercustomer.js.map +1 -1
- package/dist/esm/models/components/ordersubscription.d.ts +39 -0
- package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/ordersubscription.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +39 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptioncustomer.d.ts +11 -5
- package/dist/esm/models/components/subscriptioncustomer.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptioncustomer.js +2 -2
- package/dist/esm/models/components/subscriptioncustomer.js.map +1 -1
- package/dist/esm/models/components/webhookcustomercreatedpayload.d.ts +47 -0
- package/dist/esm/models/components/webhookcustomercreatedpayload.d.ts.map +1 -0
- package/dist/esm/models/components/webhookcustomercreatedpayload.js +34 -0
- package/dist/esm/models/components/webhookcustomercreatedpayload.js.map +1 -0
- package/dist/esm/models/components/webhookcustomerdeletedpayload.d.ts +42 -0
- package/dist/esm/models/components/webhookcustomerdeletedpayload.d.ts.map +1 -0
- package/dist/esm/models/components/webhookcustomerdeletedpayload.js +34 -0
- package/dist/esm/models/components/webhookcustomerdeletedpayload.js.map +1 -0
- package/dist/esm/models/components/webhookcustomerstatechangedpayload.d.ts +53 -0
- package/dist/esm/models/components/webhookcustomerstatechangedpayload.d.ts.map +1 -0
- package/dist/esm/models/components/webhookcustomerstatechangedpayload.js +34 -0
- package/dist/esm/models/components/webhookcustomerstatechangedpayload.js.map +1 -0
- package/dist/esm/models/components/webhookcustomerupdatedpayload.d.ts +46 -0
- package/dist/esm/models/components/webhookcustomerupdatedpayload.d.ts.map +1 -0
- package/dist/esm/models/components/webhookcustomerupdatedpayload.js +34 -0
- package/dist/esm/models/components/webhookcustomerupdatedpayload.js.map +1 -0
- package/dist/esm/models/components/webhookordercreatedpayload.d.ts +7 -0
- package/dist/esm/models/components/webhookordercreatedpayload.d.ts.map +1 -1
- package/dist/esm/models/components/webhookordercreatedpayload.js.map +1 -1
- package/dist/esm/models/components/webhooksubscriptioncreatedpayload.d.ts +2 -0
- package/dist/esm/models/components/webhooksubscriptioncreatedpayload.d.ts.map +1 -1
- package/dist/esm/models/components/webhooksubscriptioncreatedpayload.js.map +1 -1
- package/dist/esm/models/operations/customersgetstate.d.ts +32 -0
- package/dist/esm/models/operations/customersgetstate.d.ts.map +1 -0
- package/dist/esm/models/operations/customersgetstate.js +31 -0
- package/dist/esm/models/operations/customersgetstate.js.map +1 -0
- package/dist/esm/models/operations/customersgetstateexternal.d.ts +32 -0
- package/dist/esm/models/operations/customersgetstateexternal.d.ts.map +1 -0
- package/dist/esm/models/operations/customersgetstateexternal.js +40 -0
- package/dist/esm/models/operations/customersgetstateexternal.js.map +1 -0
- package/dist/esm/sdk/customers.d.ts +33 -0
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/customers.js +36 -0
- package/dist/esm/sdk/customers.js.map +1 -1
- package/dist/esm/webhooks.d.ts +2 -2
- package/dist/esm/webhooks.d.ts.map +1 -1
- package/dist/esm/webhooks.js +39 -27
- package/dist/esm/webhooks.js.map +1 -1
- package/docs/sdks/benefitgrants/README.md +10 -2
- package/docs/sdks/benefits/README.md +12 -2
- package/docs/sdks/checkoutlinks/README.md +10 -2
- package/docs/sdks/checkouts/README.md +16 -2
- package/docs/sdks/customers/README.md +206 -4
- package/docs/sdks/customfields/README.md +12 -2
- package/docs/sdks/discounts/README.md +12 -2
- package/docs/sdks/downloadables/README.md +10 -2
- package/docs/sdks/events/README.md +14 -2
- package/docs/sdks/externalorganizations/README.md +10 -2
- package/docs/sdks/files/README.md +8 -2
- package/docs/sdks/licensekeys/README.md +10 -2
- package/docs/sdks/meters/README.md +12 -2
- package/docs/sdks/metrics/README.md +6 -0
- package/docs/sdks/orders/README.md +10 -2
- package/docs/sdks/organizations/README.md +4 -4
- package/docs/sdks/polarlicensekeys/README.md +10 -2
- package/docs/sdks/polarorders/README.md +10 -2
- package/docs/sdks/polarsubscriptions/README.md +10 -2
- package/docs/sdks/products/README.md +12 -2
- package/docs/sdks/refunds/README.md +10 -2
- package/docs/sdks/repositories/README.md +10 -2
- package/docs/sdks/subscriptions/README.md +20 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customersGetState.ts +195 -0
- package/src/funcs/customersGetStateExternal.ts +197 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/customersGetState.ts +46 -0
- package/src/mcp-server/tools/customersGetStateExternal.ts +46 -0
- package/src/models/components/customer.ts +13 -7
- package/src/models/components/customercreate.ts +3 -0
- package/src/models/components/customerordersubscription.ts +39 -0
- package/src/models/components/customerstate.ts +308 -0
- package/src/models/components/customerstatebenefitgrant.ts +261 -0
- package/src/models/components/customerstatesubscription.ts +389 -0
- package/src/models/components/customersubscription.ts +9 -0
- package/src/models/components/customerupdate.ts +3 -0
- package/src/models/components/licensekeycustomer.ts +13 -7
- package/src/models/components/ordercustomer.ts +13 -7
- package/src/models/components/ordersubscription.ts +39 -0
- package/src/models/components/subscription.ts +39 -0
- package/src/models/components/subscriptioncustomer.ts +13 -7
- package/src/models/components/webhookcustomercreatedpayload.ts +93 -0
- package/src/models/components/webhookcustomerdeletedpayload.ts +88 -0
- package/src/models/components/webhookcustomerstatechangedpayload.ts +103 -0
- package/src/models/components/webhookcustomerupdatedpayload.ts +92 -0
- package/src/models/components/webhookordercreatedpayload.ts +7 -0
- package/src/models/components/webhooksubscriptioncreatedpayload.ts +2 -0
- package/src/models/operations/customersgetstate.ts +69 -0
- package/src/models/operations/customersgetstateexternal.ts +80 -0
- package/src/sdk/customers.ts +55 -0
- package/src/webhooks.ts +95 -78
package/FUNCTIONS.md
CHANGED
|
@@ -30,7 +30,11 @@ const polar = new PolarCore({
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
async function run() {
|
|
33
|
-
const res = await externalOrganizationsList(polar, {
|
|
33
|
+
const res = await externalOrganizationsList(polar, {
|
|
34
|
+
organizationId: [
|
|
35
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
36
|
+
],
|
|
37
|
+
});
|
|
34
38
|
|
|
35
39
|
switch (true) {
|
|
36
40
|
case res.ok:
|
package/README.md
CHANGED
|
@@ -177,7 +177,7 @@ async function run() {
|
|
|
177
177
|
customerEmail: "<value>",
|
|
178
178
|
customerIpAddress: "<value>",
|
|
179
179
|
customerBillingAddress: {
|
|
180
|
-
country: "
|
|
180
|
+
country: "FR",
|
|
181
181
|
},
|
|
182
182
|
customerTaxId: "<id>",
|
|
183
183
|
paymentProcessorMetadata: {
|
|
@@ -549,7 +549,7 @@ async function run() {
|
|
|
549
549
|
},
|
|
550
550
|
slug: "<value>",
|
|
551
551
|
name: "<value>",
|
|
552
|
-
organizationId: "
|
|
552
|
+
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
553
553
|
properties: {
|
|
554
554
|
options: [
|
|
555
555
|
{
|
|
@@ -573,7 +573,7 @@ async function run() {
|
|
|
573
573
|
},
|
|
574
574
|
slug: "<value>",
|
|
575
575
|
name: "<value>",
|
|
576
|
-
organizationId: "
|
|
576
|
+
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
577
577
|
properties: {},
|
|
578
578
|
},
|
|
579
579
|
order: 918364,
|
|
@@ -590,7 +590,7 @@ async function run() {
|
|
|
590
590
|
},
|
|
591
591
|
slug: "<value>",
|
|
592
592
|
name: "<value>",
|
|
593
|
-
organizationId: "
|
|
593
|
+
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
594
594
|
properties: {
|
|
595
595
|
options: [
|
|
596
596
|
{
|
|
@@ -736,6 +736,8 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
|
|
|
736
736
|
* [getExternal](docs/sdks/customers/README.md#getexternal) - Get Customer by External ID
|
|
737
737
|
* [updateExternal](docs/sdks/customers/README.md#updateexternal) - Update Customer by External ID
|
|
738
738
|
* [deleteExternal](docs/sdks/customers/README.md#deleteexternal) - Delete Customer by External ID
|
|
739
|
+
* [getState](docs/sdks/customers/README.md#getstate) - Get Customer State
|
|
740
|
+
* [getStateExternal](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
|
|
739
741
|
|
|
740
742
|
### [customerSessions](docs/sdks/customersessions/README.md)
|
|
741
743
|
|
|
@@ -918,6 +920,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
918
920
|
- [`customerSessionsCreate`](docs/sdks/customersessions/README.md#create) - Create Customer Session
|
|
919
921
|
- [`customersGet`](docs/sdks/customers/README.md#get) - Get Customer
|
|
920
922
|
- [`customersGetExternal`](docs/sdks/customers/README.md#getexternal) - Get Customer by External ID
|
|
923
|
+
- [`customersGetState`](docs/sdks/customers/README.md#getstate) - Get Customer State
|
|
924
|
+
- [`customersGetStateExternal`](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
|
|
921
925
|
- [`customersList`](docs/sdks/customers/README.md#list) - List Customers
|
|
922
926
|
- [`customersUpdate`](docs/sdks/customers/README.md#update) - Update Customer
|
|
923
927
|
- [`customersUpdateExternal`](docs/sdks/customers/README.md#updateexternal) - Update Customer by External ID
|
|
@@ -1008,7 +1012,11 @@ const polar = new Polar({
|
|
|
1008
1012
|
});
|
|
1009
1013
|
|
|
1010
1014
|
async function run() {
|
|
1011
|
-
const result = await polar.externalOrganizations.list({
|
|
1015
|
+
const result = await polar.externalOrganizations.list({
|
|
1016
|
+
organizationId: [
|
|
1017
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1018
|
+
],
|
|
1019
|
+
});
|
|
1012
1020
|
|
|
1013
1021
|
for await (const page of result) {
|
|
1014
1022
|
// Handle the page
|
|
@@ -1035,7 +1043,11 @@ const polar = new Polar({
|
|
|
1035
1043
|
});
|
|
1036
1044
|
|
|
1037
1045
|
async function run() {
|
|
1038
|
-
const result = await polar.externalOrganizations.list({
|
|
1046
|
+
const result = await polar.externalOrganizations.list({
|
|
1047
|
+
organizationId: [
|
|
1048
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1049
|
+
],
|
|
1050
|
+
}, {
|
|
1039
1051
|
retries: {
|
|
1040
1052
|
strategy: "backoff",
|
|
1041
1053
|
backoff: {
|
|
@@ -1077,7 +1089,11 @@ const polar = new Polar({
|
|
|
1077
1089
|
});
|
|
1078
1090
|
|
|
1079
1091
|
async function run() {
|
|
1080
|
-
const result = await polar.externalOrganizations.list({
|
|
1092
|
+
const result = await polar.externalOrganizations.list({
|
|
1093
|
+
organizationId: [
|
|
1094
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1095
|
+
],
|
|
1096
|
+
});
|
|
1081
1097
|
|
|
1082
1098
|
for await (const page of result) {
|
|
1083
1099
|
// Handle the page
|
|
@@ -1114,7 +1130,11 @@ const polar = new Polar({
|
|
|
1114
1130
|
async function run() {
|
|
1115
1131
|
let result;
|
|
1116
1132
|
try {
|
|
1117
|
-
result = await polar.externalOrganizations.list({
|
|
1133
|
+
result = await polar.externalOrganizations.list({
|
|
1134
|
+
organizationId: [
|
|
1135
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1136
|
+
],
|
|
1137
|
+
});
|
|
1118
1138
|
|
|
1119
1139
|
for await (const page of result) {
|
|
1120
1140
|
// Handle the page
|
|
@@ -1183,7 +1203,11 @@ const polar = new Polar({
|
|
|
1183
1203
|
});
|
|
1184
1204
|
|
|
1185
1205
|
async function run() {
|
|
1186
|
-
const result = await polar.externalOrganizations.list({
|
|
1206
|
+
const result = await polar.externalOrganizations.list({
|
|
1207
|
+
organizationId: [
|
|
1208
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1209
|
+
],
|
|
1210
|
+
});
|
|
1187
1211
|
|
|
1188
1212
|
for await (const page of result) {
|
|
1189
1213
|
// Handle the page
|
|
@@ -1207,7 +1231,11 @@ const polar = new Polar({
|
|
|
1207
1231
|
});
|
|
1208
1232
|
|
|
1209
1233
|
async function run() {
|
|
1210
|
-
const result = await polar.externalOrganizations.list({
|
|
1234
|
+
const result = await polar.externalOrganizations.list({
|
|
1235
|
+
organizationId: [
|
|
1236
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1237
|
+
],
|
|
1238
|
+
});
|
|
1211
1239
|
|
|
1212
1240
|
for await (const page of result) {
|
|
1213
1241
|
// Handle the page
|
|
@@ -1289,7 +1317,11 @@ const polar = new Polar({
|
|
|
1289
1317
|
});
|
|
1290
1318
|
|
|
1291
1319
|
async function run() {
|
|
1292
|
-
const result = await polar.externalOrganizations.list({
|
|
1320
|
+
const result = await polar.externalOrganizations.list({
|
|
1321
|
+
organizationId: [
|
|
1322
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1323
|
+
],
|
|
1324
|
+
});
|
|
1293
1325
|
|
|
1294
1326
|
for await (const page of result) {
|
|
1295
1327
|
// Handle the page
|
|
@@ -1312,7 +1344,11 @@ const polar = new Polar();
|
|
|
1312
1344
|
async function run() {
|
|
1313
1345
|
const result = await polar.customerPortal.benefitGrants.list({
|
|
1314
1346
|
customerSession: process.env["POLAR_CUSTOMER_SESSION"] ?? "",
|
|
1315
|
-
}, {
|
|
1347
|
+
}, {
|
|
1348
|
+
organizationId: [
|
|
1349
|
+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
|
|
1350
|
+
],
|
|
1351
|
+
});
|
|
1316
1352
|
|
|
1317
1353
|
for await (const page of result) {
|
|
1318
1354
|
// Handle the page
|