listbee 0.7.1 → 0.8.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.
Files changed (60) hide show
  1. package/README.md +67 -17
  2. package/dist/cjs/client.d.ts +4 -0
  3. package/dist/cjs/client.js +3 -0
  4. package/dist/cjs/client.js.map +1 -1
  5. package/dist/cjs/deliverable.d.ts +57 -0
  6. package/dist/cjs/deliverable.js +90 -0
  7. package/dist/cjs/deliverable.js.map +1 -0
  8. package/dist/cjs/errors.d.ts +11 -0
  9. package/dist/cjs/errors.js +16 -1
  10. package/dist/cjs/errors.js.map +1 -1
  11. package/dist/cjs/generated/api-types.d.ts +236 -2
  12. package/dist/cjs/generated/enums.d.ts +1 -0
  13. package/dist/cjs/generated/enums.js +1 -0
  14. package/dist/cjs/generated/enums.js.map +1 -1
  15. package/dist/cjs/generated/operations.d.ts +21 -0
  16. package/dist/cjs/generated/operations.js +3 -0
  17. package/dist/cjs/generated/operations.js.map +1 -1
  18. package/dist/cjs/generated/types.d.ts +2 -0
  19. package/dist/cjs/index.d.ts +2 -1
  20. package/dist/cjs/index.js +5 -1
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/cjs/resources/listings.d.ts +43 -4
  23. package/dist/cjs/resources/listings.js +77 -3
  24. package/dist/cjs/resources/listings.js.map +1 -1
  25. package/dist/cjs/resources/orders.d.ts +9 -8
  26. package/dist/cjs/resources/orders.js +25 -8
  27. package/dist/cjs/resources/orders.js.map +1 -1
  28. package/dist/cjs/resources/utility.d.ts +15 -0
  29. package/dist/cjs/resources/utility.js +22 -0
  30. package/dist/cjs/resources/utility.js.map +1 -0
  31. package/dist/esm/client.d.ts +4 -0
  32. package/dist/esm/client.js +3 -0
  33. package/dist/esm/client.js.map +1 -1
  34. package/dist/esm/deliverable.d.ts +57 -0
  35. package/dist/esm/deliverable.js +86 -0
  36. package/dist/esm/deliverable.js.map +1 -0
  37. package/dist/esm/errors.d.ts +11 -0
  38. package/dist/esm/errors.js +14 -0
  39. package/dist/esm/errors.js.map +1 -1
  40. package/dist/esm/generated/api-types.d.ts +236 -2
  41. package/dist/esm/generated/enums.d.ts +1 -0
  42. package/dist/esm/generated/enums.js +1 -0
  43. package/dist/esm/generated/enums.js.map +1 -1
  44. package/dist/esm/generated/operations.d.ts +21 -0
  45. package/dist/esm/generated/operations.js +3 -0
  46. package/dist/esm/generated/operations.js.map +1 -1
  47. package/dist/esm/generated/types.d.ts +2 -0
  48. package/dist/esm/index.d.ts +2 -1
  49. package/dist/esm/index.js +3 -1
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/resources/listings.d.ts +43 -4
  52. package/dist/esm/resources/listings.js +77 -3
  53. package/dist/esm/resources/listings.js.map +1 -1
  54. package/dist/esm/resources/orders.d.ts +9 -8
  55. package/dist/esm/resources/orders.js +25 -8
  56. package/dist/esm/resources/orders.js.map +1 -1
  57. package/dist/esm/resources/utility.d.ts +15 -0
  58. package/dist/esm/resources/utility.js +18 -0
  59. package/dist/esm/resources/utility.js.map +1 -0
  60. package/package.json +1 -1
@@ -224,7 +224,11 @@ export interface paths {
224
224
  * @description Replace all deliverables on a draft listing. Accepts an array of up to 3 deliverables (file, url, text). File tokens must be obtained via POST /v1/files first. Old file deliverables are automatically cleaned up from storage.
225
225
  */
226
226
  put: operations["set_deliverables"];
227
- post?: never;
227
+ /**
228
+ * Add deliverable
229
+ * @description Add a single deliverable to a draft listing. Appends to the existing array. Returns the new deliverable with a unique del_ prefixed ID. Max 3 deliverables per listing — returns 409 if at capacity.
230
+ */
231
+ post: operations["add_deliverable"];
228
232
  /**
229
233
  * Remove deliverables
230
234
  * @description Remove all deliverables from a draft listing. Demotes the listing to external fulfillment. Draft only — returns 409 if the listing is published.
@@ -235,6 +239,26 @@ export interface paths {
235
239
  patch?: never;
236
240
  trace?: never;
237
241
  };
242
+ "/v1/listings/{listing_id}/deliverables/{deliverable_id}": {
243
+ parameters: {
244
+ query?: never;
245
+ header?: never;
246
+ path?: never;
247
+ cookie?: never;
248
+ };
249
+ get?: never;
250
+ put?: never;
251
+ post?: never;
252
+ /**
253
+ * Remove deliverable
254
+ * @description Remove a single deliverable by its del_ ID from a draft listing. If the deliverable is a file, the CDN content is cleaned up.
255
+ */
256
+ delete: operations["remove_deliverable"];
257
+ options?: never;
258
+ head?: never;
259
+ patch?: never;
260
+ trace?: never;
261
+ };
238
262
  "/v1/listings/{listing_id}/publish": {
239
263
  parameters: {
240
264
  query?: never;
@@ -355,6 +379,26 @@ export interface paths {
355
379
  patch?: never;
356
380
  trace?: never;
357
381
  };
382
+ "/v1/ping": {
383
+ parameters: {
384
+ query?: never;
385
+ header?: never;
386
+ path?: never;
387
+ cookie?: never;
388
+ };
389
+ /**
390
+ * Ping
391
+ * @description Authenticated connectivity check. Returns ok if the API key is valid and the API is reachable.
392
+ */
393
+ get: operations["ping"];
394
+ put?: never;
395
+ post?: never;
396
+ delete?: never;
397
+ options?: never;
398
+ head?: never;
399
+ patch?: never;
400
+ trace?: never;
401
+ };
358
402
  "/v1/account/stripe/connect": {
359
403
  parameters: {
360
404
  query?: never;
@@ -697,6 +741,29 @@ export interface components {
697
741
  [key: string]: unknown;
698
742
  } | null;
699
743
  };
744
+ /**
745
+ * AddDeliverableRequest
746
+ * @description Add a single deliverable to a listing.
747
+ */
748
+ AddDeliverableRequest: {
749
+ /**
750
+ * @description Deliverable type: `file` (uploaded via POST /v1/files), `url` (redirect), or `text` (literal string).
751
+ * @example file
752
+ */
753
+ type: components["schemas"]["DeliverableType"];
754
+ /**
755
+ * Token
756
+ * @description File token from POST /v1/files. Required when type is `file`.
757
+ * @example file_7kQ2xY9mN3pR5tW1vB8a01
758
+ */
759
+ token?: string | null;
760
+ /**
761
+ * Value
762
+ * @description URL (https required) or text content. Required when type is `url` or `text`.
763
+ * @example https://example.com/secret-area
764
+ */
765
+ value?: string | null;
766
+ };
700
767
  /** ApiKeyListResponse */
701
768
  ApiKeyListResponse: {
702
769
  /**
@@ -1219,6 +1286,12 @@ export interface components {
1219
1286
  * @constant
1220
1287
  */
1221
1288
  object: "deliverable";
1289
+ /**
1290
+ * Id
1291
+ * @description Unique deliverable identifier (del_ prefixed).
1292
+ * @example del_7kQ2xY9mN3pR5tW1vB8a01
1293
+ */
1294
+ id: string;
1222
1295
  /**
1223
1296
  * @description Deliverable type.
1224
1297
  * @example file
@@ -1810,6 +1883,25 @@ export interface components {
1810
1883
  * @enum {string}
1811
1884
  */
1812
1885
  OrderStatus: "pending" | "paid" | "fulfilled" | "canceled" | "failed";
1886
+ /** PingResponse */
1887
+ PingResponse: {
1888
+ /**
1889
+ * Object
1890
+ * @description Object type identifier.
1891
+ * @default ping
1892
+ * @example ping
1893
+ * @constant
1894
+ */
1895
+ object: "ping";
1896
+ /**
1897
+ * Status
1898
+ * @description API connectivity status.
1899
+ * @default ok
1900
+ * @example ok
1901
+ * @constant
1902
+ */
1903
+ status: "ok";
1904
+ };
1813
1905
  /**
1814
1906
  * ProblemDetail
1815
1907
  * @description RFC 9457 Problem Details for HTTP APIs.
@@ -2363,7 +2455,7 @@ export interface components {
2363
2455
  * WebhookEventType
2364
2456
  * @enum {string}
2365
2457
  */
2366
- WebhookEventType: "order.paid" | "order.fulfilled" | "order.shipped" | "order.refunded" | "order.disputed" | "order.dispute_closed" | "order.canceled" | "listing.created" | "listing.updated" | "listing.out_of_stock" | "listing.deleted" | "customer.created";
2458
+ WebhookEventType: "order.paid" | "order.fulfilled" | "order.shipped" | "order.refunded" | "order.disputed" | "order.dispute_closed" | "order.canceled" | "listing.created" | "listing.updated" | "listing.published" | "listing.out_of_stock" | "listing.deleted" | "customer.created";
2367
2459
  /** WebhookListResponse */
2368
2460
  WebhookListResponse: {
2369
2461
  /**
@@ -3297,6 +3389,69 @@ export interface operations {
3297
3389
  };
3298
3390
  };
3299
3391
  };
3392
+ add_deliverable: {
3393
+ parameters: {
3394
+ query?: never;
3395
+ header?: never;
3396
+ path: {
3397
+ /** @description Listing ID. */
3398
+ listing_id: string;
3399
+ };
3400
+ cookie?: never;
3401
+ };
3402
+ requestBody: {
3403
+ content: {
3404
+ "application/json": components["schemas"]["AddDeliverableRequest"];
3405
+ };
3406
+ };
3407
+ responses: {
3408
+ /** @description Successful Response */
3409
+ 201: {
3410
+ headers: {
3411
+ [name: string]: unknown;
3412
+ };
3413
+ content: {
3414
+ "application/json": components["schemas"]["DeliverableResponse"];
3415
+ };
3416
+ };
3417
+ /** @description Invalid or missing API key. */
3418
+ 401: {
3419
+ headers: {
3420
+ [name: string]: unknown;
3421
+ };
3422
+ content: {
3423
+ "application/json": components["schemas"]["ProblemDetail"];
3424
+ };
3425
+ };
3426
+ /** @description Listing not found. */
3427
+ 404: {
3428
+ headers: {
3429
+ [name: string]: unknown;
3430
+ };
3431
+ content: {
3432
+ "application/json": components["schemas"]["ProblemDetail"];
3433
+ };
3434
+ };
3435
+ /** @description Listing not in draft, or at max capacity. */
3436
+ 409: {
3437
+ headers: {
3438
+ [name: string]: unknown;
3439
+ };
3440
+ content: {
3441
+ "application/json": components["schemas"]["ProblemDetail"];
3442
+ };
3443
+ };
3444
+ /** @description Validation error. */
3445
+ 422: {
3446
+ headers: {
3447
+ [name: string]: unknown;
3448
+ };
3449
+ content: {
3450
+ "application/json": components["schemas"]["ProblemDetail"];
3451
+ };
3452
+ };
3453
+ };
3454
+ };
3300
3455
  remove_deliverables: {
3301
3456
  parameters: {
3302
3457
  query?: never;
@@ -3356,6 +3511,65 @@ export interface operations {
3356
3511
  };
3357
3512
  };
3358
3513
  };
3514
+ remove_deliverable: {
3515
+ parameters: {
3516
+ query?: never;
3517
+ header?: never;
3518
+ path: {
3519
+ /** @description Listing ID. */
3520
+ listing_id: string;
3521
+ /** @description Deliverable ID. */
3522
+ deliverable_id: string;
3523
+ };
3524
+ cookie?: never;
3525
+ };
3526
+ requestBody?: never;
3527
+ responses: {
3528
+ /** @description Successful Response */
3529
+ 204: {
3530
+ headers: {
3531
+ [name: string]: unknown;
3532
+ };
3533
+ content?: never;
3534
+ };
3535
+ /** @description Invalid or missing API key. */
3536
+ 401: {
3537
+ headers: {
3538
+ [name: string]: unknown;
3539
+ };
3540
+ content: {
3541
+ "application/json": components["schemas"]["ProblemDetail"];
3542
+ };
3543
+ };
3544
+ /** @description Listing or deliverable not found. */
3545
+ 404: {
3546
+ headers: {
3547
+ [name: string]: unknown;
3548
+ };
3549
+ content: {
3550
+ "application/json": components["schemas"]["ProblemDetail"];
3551
+ };
3552
+ };
3553
+ /** @description Listing is not in draft status. */
3554
+ 409: {
3555
+ headers: {
3556
+ [name: string]: unknown;
3557
+ };
3558
+ content: {
3559
+ "application/json": components["schemas"]["ProblemDetail"];
3560
+ };
3561
+ };
3562
+ /** @description Validation Error */
3563
+ 422: {
3564
+ headers: {
3565
+ [name: string]: unknown;
3566
+ };
3567
+ content: {
3568
+ "application/json": components["schemas"]["HTTPValidationError"];
3569
+ };
3570
+ };
3571
+ };
3572
+ };
3359
3573
  publish_listing: {
3360
3574
  parameters: {
3361
3575
  query?: never;
@@ -3694,6 +3908,26 @@ export interface operations {
3694
3908
  };
3695
3909
  };
3696
3910
  };
3911
+ ping: {
3912
+ parameters: {
3913
+ query?: never;
3914
+ header?: never;
3915
+ path?: never;
3916
+ cookie?: never;
3917
+ };
3918
+ requestBody?: never;
3919
+ responses: {
3920
+ /** @description Successful Response */
3921
+ 200: {
3922
+ headers: {
3923
+ [name: string]: unknown;
3924
+ };
3925
+ content: {
3926
+ "application/json": components["schemas"]["PingResponse"];
3927
+ };
3928
+ };
3929
+ };
3930
+ };
3697
3931
  start_stripe_connect: {
3698
3932
  parameters: {
3699
3933
  query?: never;
@@ -65,6 +65,7 @@ export declare const WebhookEventType: {
65
65
  readonly ORDER_CANCELED: "order.canceled";
66
66
  readonly LISTING_CREATED: "listing.created";
67
67
  readonly LISTING_UPDATED: "listing.updated";
68
+ readonly LISTING_PUBLISHED: "listing.published";
68
69
  readonly LISTING_OUT_OF_STOCK: "listing.out_of_stock";
69
70
  readonly LISTING_DELETED: "listing.deleted";
70
71
  readonly CUSTOMER_CREATED: "customer.created";
@@ -59,6 +59,7 @@ exports.WebhookEventType = {
59
59
  ORDER_CANCELED: 'order.canceled',
60
60
  LISTING_CREATED: 'listing.created',
61
61
  LISTING_UPDATED: 'listing.updated',
62
+ LISTING_PUBLISHED: 'listing.published',
62
63
  LISTING_OUT_OF_STOCK: 'listing.out_of_stock',
63
64
  LISTING_DELETED: 'listing.deleted',
64
65
  CUSTOMER_CREATED: 'customer.created',
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/generated/enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;CACN,CAAC;AAGE,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAGE,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAGE,QAAA,iBAAiB,GAAG;IAC/B,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAGE,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAGE,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,aAAa,G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,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,oBAAoB,EAAE,sBAAsB;IAC5C,uBAAuB,EAAE,yBAAyB;IAClD,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,uBAAuB,EAAE,yBAAyB;IAClD,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;CACxB,CAAC"}
@@ -118,6 +118,13 @@ export declare const operations: {
118
118
  readonly request: "SetDeliverablesRequest";
119
119
  readonly response: "ListingResponse";
120
120
  };
121
+ readonly add_deliverable: {
122
+ readonly method: "POST";
123
+ readonly path: "/v1/listings/{listing_id}/deliverables";
124
+ readonly auth: true;
125
+ readonly request: "AddDeliverableRequest";
126
+ readonly response: "DeliverableResponse";
127
+ };
121
128
  readonly remove_deliverables: {
122
129
  readonly method: "DELETE";
123
130
  readonly path: "/v1/listings/{listing_id}/deliverables";
@@ -125,6 +132,13 @@ export declare const operations: {
125
132
  readonly request: null;
126
133
  readonly response: "ListingResponse";
127
134
  };
135
+ readonly remove_deliverable: {
136
+ readonly method: "DELETE";
137
+ readonly path: "/v1/listings/{listing_id}/deliverables/{deliverable_id}";
138
+ readonly auth: true;
139
+ readonly request: null;
140
+ readonly response: null;
141
+ };
128
142
  readonly publish_listing: {
129
143
  readonly method: "POST";
130
144
  readonly path: "/v1/listings/{listing_id}/publish";
@@ -167,6 +181,13 @@ export declare const operations: {
167
181
  readonly request: "ShipOrderRequest";
168
182
  readonly response: "OrderResponse";
169
183
  };
184
+ readonly ping: {
185
+ readonly method: "GET";
186
+ readonly path: "/v1/ping";
187
+ readonly auth: true;
188
+ readonly request: null;
189
+ readonly response: "PingResponse";
190
+ };
170
191
  readonly start_stripe_connect: {
171
192
  readonly method: "POST";
172
193
  readonly path: "/v1/account/stripe/connect";
@@ -19,13 +19,16 @@ exports.operations = {
19
19
  update_listing: { method: 'PUT', path: '/v1/listings/{listing_id}', auth: true, request: 'UpdateListingRequest', response: 'ListingResponse' },
20
20
  delete_listing: { method: 'DELETE', path: '/v1/listings/{listing_id}', auth: true, request: null, response: null },
21
21
  set_deliverables: { method: 'PUT', path: '/v1/listings/{listing_id}/deliverables', auth: true, request: 'SetDeliverablesRequest', response: 'ListingResponse' },
22
+ add_deliverable: { method: 'POST', path: '/v1/listings/{listing_id}/deliverables', auth: true, request: 'AddDeliverableRequest', response: 'DeliverableResponse' },
22
23
  remove_deliverables: { method: 'DELETE', path: '/v1/listings/{listing_id}/deliverables', auth: true, request: null, response: 'ListingResponse' },
24
+ remove_deliverable: { method: 'DELETE', path: '/v1/listings/{listing_id}/deliverables/{deliverable_id}', auth: true, request: null, response: null },
23
25
  publish_listing: { method: 'POST', path: '/v1/listings/{listing_id}/publish', auth: true, request: null, response: 'ListingResponse' },
24
26
  list_orders: { method: 'GET', path: '/v1/orders', auth: true, request: null, response: 'OrderListResponse' },
25
27
  get_order: { method: 'GET', path: '/v1/orders/{order_id}', auth: true, request: null, response: 'OrderResponse' },
26
28
  refund_order: { method: 'POST', path: '/v1/orders/{order_id}/refund', auth: true, request: null, response: 'OrderResponse' },
27
29
  deliver_order: { method: 'POST', path: '/v1/orders/{order_id}/deliver', auth: true, request: 'DeliverOrderRequest', response: 'OrderResponse' },
28
30
  ship_order: { method: 'POST', path: '/v1/orders/{order_id}/ship', auth: true, request: 'ShipOrderRequest', response: 'OrderResponse' },
31
+ ping: { method: 'GET', path: '/v1/ping', auth: true, request: null, response: 'PingResponse' },
29
32
  start_stripe_connect: { method: 'POST', path: '/v1/account/stripe/connect', auth: true, request: null, response: 'StripeConnectSessionResponse' },
30
33
  disconnect_stripe: { method: 'DELETE', path: '/v1/account/stripe', auth: true, request: null, response: null },
31
34
  list_webhooks: { method: 'GET', path: '/v1/webhooks', auth: true, request: null, response: 'WebhookListResponse' },
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/generated/operations.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,WAAW,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAC3G,cAAc,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAChI,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,uBAAuB,EAAE;IACxI,cAAc,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACpG,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAA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emas']['AccountResponse'];
4
4
  export type AccountStats = components['schemas']['AccountStats'];
5
5
  export type Action = components['schemas']['Action'];
6
6
  export type ActionResolve = components['schemas']['ActionResolve'];
7
+ export type AddDeliverableParams = components['schemas']['AddDeliverableRequest'];
7
8
  export type ApiKeyListResponse = components['schemas']['ApiKeyListResponse'];
8
9
  export type ApiKeyResponse = components['schemas']['ApiKeyResponse'];
9
10
  export type CheckoutFieldInput = components['schemas']['CheckoutFieldInput'];
@@ -24,6 +25,7 @@ export type ListingReadiness = components['schemas']['ListingReadiness'];
24
25
  export type ListingResponse = components['schemas']['ListingResponse'];
25
26
  export type OrderListResponse = components['schemas']['OrderListResponse'];
26
27
  export type OrderResponse = components['schemas']['OrderResponse'];
28
+ export type PingResponse = components['schemas']['PingResponse'];
27
29
  export type ReviewInput = components['schemas']['ReviewInput'];
28
30
  export type SetDeliverablesParams = components['schemas']['SetDeliverablesRequest'];
29
31
  export type ShipOrderParams = components['schemas']['ShipOrderRequest'];
@@ -5,7 +5,8 @@ export { ListBee } from './client';
5
5
  export type { ClientOptions } from './client';
6
6
  export { CursorPage } from './base-client';
7
7
  export type { RequestOptions } from './base-client';
8
- export { APIConnectionError, APIStatusError, APITimeoutError, AuthenticationError, BadRequestError, ConflictError, ForbiddenError, InternalServerError, ListBeeError, NotFoundError, PayloadTooLargeError, RateLimitError, ValidationError, WebhookVerificationError, } from './errors';
8
+ export { APIConnectionError, APIStatusError, APITimeoutError, AuthenticationError, BadRequestError, ConflictError, ForbiddenError, InternalServerError, ListBeeError, NotFoundError, PartialCreationError, PayloadTooLargeError, RateLimitError, ValidationError, WebhookVerificationError, } from './errors';
9
+ export { Deliverable } from './deliverable';
9
10
  export { AccountResource } from './resources/account';
10
11
  export { ApiKeysResource } from './resources/api-keys';
11
12
  export { CustomersResource } from './resources/customers';
package/dist/cjs/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ListBee TypeScript SDK — public exports.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WebhookEventType = exports.OrderStatus = exports.ListingStatus = exports.FulfillmentMode = exports.ErrorCode = exports.DeliverableType = exports.DeliverableStatus = exports.CheckoutFieldType = exports.BlurMode = exports.ActionKind = exports.ActionCode = exports.WebhooksResource = exports.StripeResource = exports.SignupResource = exports.OrdersResource = exports.ListingsResource = exports.FilesResource = exports.CustomersResource = exports.ApiKeysResource = exports.AccountResource = exports.WebhookVerificationError = exports.ValidationError = exports.RateLimitError = exports.PayloadTooLargeError = exports.NotFoundError = exports.ListBeeError = exports.InternalServerError = exports.ForbiddenError = exports.ConflictError = exports.BadRequestError = exports.AuthenticationError = exports.APITimeoutError = exports.APIStatusError = exports.APIConnectionError = exports.CursorPage = exports.ListBee = void 0;
6
+ exports.WebhookEventType = exports.OrderStatus = exports.ListingStatus = exports.FulfillmentMode = exports.ErrorCode = exports.DeliverableType = exports.DeliverableStatus = exports.CheckoutFieldType = exports.BlurMode = exports.ActionKind = exports.ActionCode = exports.WebhooksResource = exports.StripeResource = exports.SignupResource = exports.OrdersResource = exports.ListingsResource = exports.FilesResource = exports.CustomersResource = exports.ApiKeysResource = exports.AccountResource = exports.Deliverable = exports.WebhookVerificationError = exports.ValidationError = exports.RateLimitError = exports.PayloadTooLargeError = exports.PartialCreationError = exports.NotFoundError = exports.ListBeeError = exports.InternalServerError = exports.ForbiddenError = exports.ConflictError = exports.BadRequestError = exports.AuthenticationError = exports.APITimeoutError = exports.APIStatusError = exports.APIConnectionError = exports.CursorPage = exports.ListBee = void 0;
7
7
  // Client
8
8
  var client_1 = require("./client");
9
9
  Object.defineProperty(exports, "ListBee", { enumerable: true, get: function () { return client_1.ListBee; } });
@@ -21,10 +21,14 @@ Object.defineProperty(exports, "ForbiddenError", { enumerable: true, get: functi
21
21
  Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return errors_1.InternalServerError; } });
22
22
  Object.defineProperty(exports, "ListBeeError", { enumerable: true, get: function () { return errors_1.ListBeeError; } });
23
23
  Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return errors_1.NotFoundError; } });
24
+ Object.defineProperty(exports, "PartialCreationError", { enumerable: true, get: function () { return errors_1.PartialCreationError; } });
24
25
  Object.defineProperty(exports, "PayloadTooLargeError", { enumerable: true, get: function () { return errors_1.PayloadTooLargeError; } });
25
26
  Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } });
26
27
  Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } });
27
28
  Object.defineProperty(exports, "WebhookVerificationError", { enumerable: true, get: function () { return errors_1.WebhookVerificationError; } });
29
+ // Deliverable input builder
30
+ var deliverable_1 = require("./deliverable");
31
+ Object.defineProperty(exports, "Deliverable", { enumerable: true, get: function () { return deliverable_1.Deliverable; } });
28
32
  // Resources
29
33
  var account_1 = require("./resources/account");
30
34
  Object.defineProperty(exports, "AccountResource", { enumerable: true, get: function () { return account_1.AccountResource; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,SAAS;AACT,mCAAmC;AAA1B,iGAAA,OAAO,OAAA;AAEhB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AAGnB,SAAS;AACT,mCAekB;AAdhB,4GAAA,kBAAkB,OAAA;AAClB,wGAAA,cAAc,OAAA;AACd,yGAAA,eAAe,OAAA;AACf,6GAAA,mBAAmB,OAAA;AACnB,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AACb,wGAAA,cAAc,OAAA;AACd,6GAAA,mBAAmB,OAAA;AACnB,sGAAA,YAAY,OAAA;AACZ,uGAAA,aAAa,OAAA;AACb,8GAAA,oBAAoB,OAAA;AACpB,wGAAA,cAAc,OAAA;AACd,yGAAA,eAAe,OAAA;AACf,kHAAA,wBAAwB,OAAA;AAG1B,YAAY;AACZ,+CAAsD;AAA7C,0GAAA,eAAe,OAAA;AACxB,iDAA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4B;AAC5B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,YAAY;AACZ,+CAAsD;AAA7C,0GAAA,eAAe,OAAA;AACxB,iDAAuD;AAA9C,2GAAA,eAAe,OAAA;AACxB,mDAA0D;AAAjD,8GAAA,iBAAiB,OAAA;AAC1B,2CAAkD;AAAzC,sGAAA,aAAa,OAAA;AACtB,iDAAwD;AAA/C,4GAAA,gBAAgB,OAAA;AACzB,6CAAoD;AAA3C,wGAAA,cAAc,OAAA;AACvB,6CAAoD;AAA3C,wGAAA,cAAc,OAAA;AACvB,6CAAoD;AAA3C,wGAAA,cAAc,OAAA;AACvB,iDAAwD;AAA/C,4GAAA,gBAAgB,OAAA;AAEzB,yBAAyB;AACzB,2CAY2B;AAXzB,mGAAA,UAAU,OAAA;AACV,mGAAA,UAAU,OAAA;AACV,iGAAA,QAAQ,OAAA;AACR,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,wGAAA,eAAe,OAAA;AACf,kGAAA,SAAS,OAAA;AACT,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AACX,yGAAA,gBAAgB,OAAA"}
@@ -2,8 +2,14 @@
2
2
  * Listings resource — CRUD + publish + deliverables for /v1/listings.
3
3
  */
4
4
  import type { BaseClient, CursorPage } from '../base-client';
5
- import type { CreateListingParams, ListingResponse, UpdateListingParams, ListListingsParams, SetDeliverablesParams } from '../generated/types';
5
+ import { Deliverable } from '../deliverable';
6
+ import type { CreateListingParams, DeliverableResponse, ListingResponse, UpdateListingParams, ListListingsParams, SetDeliverablesParams } from '../generated/types';
6
7
  import type { RequestOptions } from '../types/shared';
8
+ interface AddDeliverableParams {
9
+ type: 'file' | 'url' | 'text';
10
+ token?: string | null;
11
+ value?: string | null;
12
+ }
7
13
  /** Resource for the /v1/listings endpoint. */
8
14
  export declare class ListingsResource {
9
15
  private readonly _client;
@@ -54,12 +60,15 @@ export declare class ListingsResource {
54
60
  publish(listingId: string, options?: RequestOptions): Promise<ListingResponse>;
55
61
  /**
56
62
  * Set deliverables on a listing (replaces all existing).
63
+ * Accepts Deliverable objects or raw params. Files uploaded transparently.
57
64
  *
58
- * @param listingId - The listing ID (e.g. "lst_abc123").
59
- * @param params - Deliverables array.
65
+ * @param listingId - The listing ID.
66
+ * @param params - Deliverables array (Deliverable objects or raw SetDeliverablesParams).
60
67
  * @returns The updated ListingResponse.
61
68
  */
62
- setDeliverables(listingId: string, params: SetDeliverablesParams): Promise<ListingResponse>;
69
+ setDeliverables(listingId: string, params: SetDeliverablesParams | {
70
+ deliverables: (Deliverable | AddDeliverableParams)[];
71
+ }): Promise<ListingResponse>;
63
72
  /**
64
73
  * Remove all deliverables from a listing.
65
74
  *
@@ -67,4 +76,34 @@ export declare class ListingsResource {
67
76
  * @returns The updated ListingResponse.
68
77
  */
69
78
  removeDeliverables(listingId: string): Promise<ListingResponse>;
79
+ /**
80
+ * Add a single deliverable to a draft listing.
81
+ * Files are uploaded transparently.
82
+ *
83
+ * @param listingId - The listing ID.
84
+ * @param deliverable - A Deliverable instance.
85
+ * @param options - Request options.
86
+ * @returns The new DeliverableResponse.
87
+ */
88
+ addDeliverable(listingId: string, deliverable: Deliverable, options?: RequestOptions): Promise<DeliverableResponse>;
89
+ /**
90
+ * Remove a single deliverable by ID from a draft listing.
91
+ *
92
+ * @param listingId - The listing ID.
93
+ * @param deliverableId - The deliverable ID (del_ prefixed).
94
+ */
95
+ removeDeliverable(listingId: string, deliverableId: string): Promise<void>;
96
+ /**
97
+ * Create a listing with deliverables in one call.
98
+ * Orchestrates: create → upload files → attach deliverables → return.
99
+ * If any step after creation fails, throws PartialCreationError.
100
+ *
101
+ * @param params - Create params with optional deliverables array.
102
+ * @param options - Request options.
103
+ * @returns The complete ListingResponse.
104
+ */
105
+ createComplete(params: CreateListingParams & {
106
+ deliverables?: Deliverable[];
107
+ }, options?: RequestOptions): Promise<ListingResponse>;
70
108
  }
109
+ export {};
@@ -5,6 +5,9 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ListingsResource = void 0;
7
7
  const constants_1 = require("../constants");
8
+ const deliverable_1 = require("../deliverable");
9
+ const errors_1 = require("../errors");
10
+ const files_1 = require("./files");
8
11
  /** Resource for the /v1/listings endpoint. */
9
12
  class ListingsResource {
10
13
  constructor(_client) {
@@ -85,13 +88,31 @@ class ListingsResource {
85
88
  }
86
89
  /**
87
90
  * Set deliverables on a listing (replaces all existing).
91
+ * Accepts Deliverable objects or raw params. Files uploaded transparently.
88
92
  *
89
- * @param listingId - The listing ID (e.g. "lst_abc123").
90
- * @param params - Deliverables array.
93
+ * @param listingId - The listing ID.
94
+ * @param params - Deliverables array (Deliverable objects or raw SetDeliverablesParams).
91
95
  * @returns The updated ListingResponse.
92
96
  */
93
97
  async setDeliverables(listingId, params) {
94
- const response = await this._client.put(`/v1/listings/${listingId}/deliverables`, params);
98
+ const files = new files_1.FilesResource(this._client);
99
+ const resolved = [];
100
+ for (const d of params.deliverables) {
101
+ if (d instanceof deliverable_1.Deliverable) {
102
+ let token;
103
+ if (d.needsUpload) {
104
+ const fileResp = await files.upload(d.toUploadData());
105
+ token = fileResp.id;
106
+ }
107
+ resolved.push(d.toApiBody(token));
108
+ }
109
+ else {
110
+ resolved.push(d);
111
+ }
112
+ }
113
+ const response = await this._client.put(`/v1/listings/${listingId}/deliverables`, {
114
+ deliverables: resolved,
115
+ });
95
116
  return (await response.json());
96
117
  }
97
118
  /**
@@ -103,6 +124,59 @@ class ListingsResource {
103
124
  async removeDeliverables(listingId) {
104
125
  return this._client.deleteWithResponse(`/v1/listings/${listingId}/deliverables`);
105
126
  }
127
+ /**
128
+ * Add a single deliverable to a draft listing.
129
+ * Files are uploaded transparently.
130
+ *
131
+ * @param listingId - The listing ID.
132
+ * @param deliverable - A Deliverable instance.
133
+ * @param options - Request options.
134
+ * @returns The new DeliverableResponse.
135
+ */
136
+ async addDeliverable(listingId, deliverable, options) {
137
+ let token;
138
+ if (deliverable.needsUpload) {
139
+ const files = new files_1.FilesResource(this._client);
140
+ const fileResp = await files.upload(deliverable.toUploadData(), options);
141
+ token = fileResp.id;
142
+ }
143
+ const body = deliverable.toApiBody(token);
144
+ const response = await this._client.post(`/v1/listings/${listingId}/deliverables`, body, options);
145
+ return (await response.json());
146
+ }
147
+ /**
148
+ * Remove a single deliverable by ID from a draft listing.
149
+ *
150
+ * @param listingId - The listing ID.
151
+ * @param deliverableId - The deliverable ID (del_ prefixed).
152
+ */
153
+ async removeDeliverable(listingId, deliverableId) {
154
+ await this._client.delete(`/v1/listings/${listingId}/deliverables/${deliverableId}`);
155
+ }
156
+ /**
157
+ * Create a listing with deliverables in one call.
158
+ * Orchestrates: create → upload files → attach deliverables → return.
159
+ * If any step after creation fails, throws PartialCreationError.
160
+ *
161
+ * @param params - Create params with optional deliverables array.
162
+ * @param options - Request options.
163
+ * @returns The complete ListingResponse.
164
+ */
165
+ async createComplete(params, options) {
166
+ const { deliverables, ...createParams } = params;
167
+ const listing = await this.create(createParams, options);
168
+ if (!deliverables || deliverables.length === 0)
169
+ return listing;
170
+ try {
171
+ for (const d of deliverables) {
172
+ await this.addDeliverable(listing.id, d, options);
173
+ }
174
+ return this.get(listing.id);
175
+ }
176
+ catch (err) {
177
+ throw new errors_1.PartialCreationError(listing.id, err instanceof Error ? err.message : String(err));
178
+ }
179
+ }
106
180
  }
107
181
  exports.ListingsResource = ListingsResource;
108
182
  //# sourceMappingURL=listings.js.map