listbee 0.3.0 → 0.5.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.
@@ -1,19 +1,42 @@
1
1
  /**
2
2
  * Shared types used across multiple resources.
3
3
  */
4
- /** Content type — auto-detected from the content value at creation. */
5
- export const ContentType = {
4
+ /** Deliverable type — auto-detected from the content value at creation. */
5
+ export const DeliverableType = {
6
6
  FILE: 'file',
7
7
  URL: 'url',
8
8
  TEXT: 'text',
9
9
  };
10
+ /**
11
+ * Content type — auto-detected from the content value at creation.
12
+ * @deprecated Use `DeliverableType` instead.
13
+ */
14
+ export const ContentType = DeliverableType;
15
+ /** Fulfillment mode for a listing. */
16
+ export const FulfillmentMode = {
17
+ MANAGED: 'managed',
18
+ EXTERNAL: 'external',
19
+ };
20
+ /** Checkout field type for buyer-facing forms. */
21
+ export const CheckoutFieldType = {
22
+ ADDRESS: 'address',
23
+ TEXT: 'text',
24
+ SELECT: 'select',
25
+ DATE: 'date',
26
+ };
10
27
  /** Order status. */
11
28
  export const OrderStatus = {
12
- COMPLETED: 'completed',
29
+ PENDING: 'pending',
30
+ PAID: 'paid',
31
+ FULFILLED: 'fulfilled',
32
+ CANCELED: 'canceled',
33
+ FAILED: 'failed',
13
34
  };
14
35
  /** Webhook event type. */
15
36
  export const WebhookEventType = {
16
- ORDER_COMPLETED: 'order.completed',
37
+ ORDER_PAID: 'order.paid',
38
+ ORDER_FULFILLED: 'order.fulfilled',
39
+ ORDER_SHIPPED: 'order.shipped',
17
40
  ORDER_REFUNDED: 'order.refunded',
18
41
  ORDER_DISPUTED: 'order.disputed',
19
42
  ORDER_DISPUTE_CLOSED: 'order.dispute_closed',
@@ -34,5 +57,6 @@ export const ActionCode = {
34
57
  CONNECT_STRIPE: 'connect_stripe',
35
58
  ENABLE_CHARGES: 'enable_charges',
36
59
  UPDATE_BILLING: 'update_billing',
60
+ CONFIGURE_WEBHOOK: 'configure_webhook',
37
61
  };
38
62
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/types/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmDH,uEAAuE;AACvE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAGX,oBAAoB;AACpB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,SAAS,EAAE,WAAW;CACd,CAAC;AAGX,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;CAC1B,CAAC;AAGX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;CACxB,CAAC"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/types/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AA6DH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;AAM3C,sCAAsC;AACtC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAiCX,oBAAoB;AACpB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;CAC1B,CAAC;AAGX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listbee",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Official TypeScript SDK for the ListBee API — one API call to sell and deliver digital content.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://listbee.so",