@zinn-digital/sdk 0.1.1652 → 0.1.1654

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.
@@ -56484,6 +56484,50 @@ export interface paths {
56484
56484
  patch?: never;
56485
56485
  trace?: never;
56486
56486
  };
56487
+ "/v1/store-connect/support/tickets": {
56488
+ parameters: {
56489
+ query?: never;
56490
+ header?: never;
56491
+ path?: never;
56492
+ cookie?: never;
56493
+ };
56494
+ /**
56495
+ * This store's support tickets, newest first, with status and support's latest reply.
56496
+ * @description Store token only. Never another store's ticket, even in the same organisation. A page of 50, never a cap: pass `before` = the last `reference` (`next_before`) for older ones. `answered` counts the tickets waiting on the store (the plugin's menu badge).
56497
+ */
56498
+ get: operations["listStoreSupportTickets"];
56499
+ put?: never;
56500
+ /**
56501
+ * Zinn® Order Updates files a support ticket with its store token (docs/1297 §16).
56502
+ * @description Store token only (`Authorization: Bearer zou_…`). Files the ticket in the plugin-support desk tagged `product=zinn-order-updates`, exactly like `createPluginSupportTicket`; the reply address is `email` when given, else the member who approved the store. The ticket is tied to THIS store connection, so only this store lists it. `diagnostics` are kept only with `consent_diagnostics: true` (the plugin shows them in full first). A store that never connected uses `createPluginSupportTicket` with an e-mail address instead.
56503
+ */
56504
+ post: operations["createStoreSupportTicket"];
56505
+ delete?: never;
56506
+ options?: never;
56507
+ head?: never;
56508
+ patch?: never;
56509
+ trace?: never;
56510
+ };
56511
+ "/v1/store-connect/support/tickets/{reference}/replies": {
56512
+ parameters: {
56513
+ query?: never;
56514
+ header?: never;
56515
+ path?: never;
56516
+ cookie?: never;
56517
+ };
56518
+ get?: never;
56519
+ put?: never;
56520
+ /**
56521
+ * The store owner replies to one of this store's tickets from the plugin.
56522
+ * @description Store token only. Another store's ticket is a 404. The ticket returns to `open` (waiting on support); a closed ticket is a 422 with code `TICKET_CLOSED`.
56523
+ */
56524
+ post: operations["replyStoreSupportTicket"];
56525
+ delete?: never;
56526
+ options?: never;
56527
+ head?: never;
56528
+ patch?: never;
56529
+ trace?: never;
56530
+ };
56487
56531
  "/v1/store-connect/token": {
56488
56532
  parameters: {
56489
56533
  query?: never;
@@ -71071,7 +71115,7 @@ export interface components {
71071
71115
  AdsSmartBidHealthItem: {
71072
71116
  /** @description free_primary / duplicate_primary / tracking_reason: the conversion actions' names. */
71073
71117
  actions: string[];
71074
- /** @description duplicate_primary: the conversion category counted twice. */
71118
+ /** @description duplicate_primary: the conversion category counted twice, as Google's ConversionActionCategory code (`PURCHASE`, `ADD_TO_CART`, ...); a client translates it and shows an unknown code as a generic word. */
71075
71119
  category: string;
71076
71120
  /** @enum {string} */
71077
71121
  code: "primary_7d" | "tracking" | "tracking_reason" | "dedupe" | "free_primary" | "duplicate_primary" | "enhanced" | "uploads";
@@ -71081,8 +71125,11 @@ export interface components {
71081
71125
  network: string;
71082
71126
  /** @enum {string} */
71083
71127
  state: "failing" | "unreadable";
71084
- /** @description tracking: the tracking check's status (`gap`, `unreadable`). */
71085
- status: string;
71128
+ /**
71129
+ * @description tracking only (every other check serves `""`): `gap` or `unreadable` is the status of a tracking check that ran and failed (state `failing`); `not_checked` means no tracking check ran in the last 2 days (state `unreadable`).
71130
+ * @enum {string}
71131
+ */
71132
+ status: "" | "gap" | "unreadable" | "not_checked";
71086
71133
  };
71087
71134
  AdsSocial: {
71088
71135
  accounts: {
@@ -97282,7 +97329,7 @@ export interface components {
97282
97329
  * @description A product plugin support is offered for. Adding one is a registry entry in `engine/pluginsupport/products.py`, not a new endpoint.
97283
97330
  * @enum {string}
97284
97331
  */
97285
- PluginSupportProduct: "page-builder-sandwich" | "tranzly" | "zinn-seo";
97332
+ PluginSupportProduct: "page-builder-sandwich" | "tranzly" | "zinn-order-updates" | "zinn-seo";
97286
97333
  PluginSupportTicketCreated: {
97287
97334
  /** @enum {string} */
97288
97335
  priority: "normal" | "high";
@@ -111294,6 +111341,56 @@ export interface components {
111294
111341
  StoredVideoList: {
111295
111342
  videos: components["schemas"]["StoredVideo"][];
111296
111343
  };
111344
+ StoreSupportTicket: {
111345
+ /** Format: date-time */
111346
+ created_at: string;
111347
+ /** @enum {string} */
111348
+ kind: "help" | "bug" | "feedback" | "feature_request";
111349
+ /** Format: date-time */
111350
+ last_message_at: string | null;
111351
+ /** @description Support's latest public reply, in the customer's language; null before one. */
111352
+ latest_reply: {
111353
+ /** Format: date-time */
111354
+ at: string;
111355
+ body: string;
111356
+ } | null;
111357
+ /** @example ZT-7KQ3MX */
111358
+ reference: string;
111359
+ /**
111360
+ * @description What the plugin shows (it translates the label).
111361
+ * @enum {string}
111362
+ */
111363
+ state: "waiting_on_us" | "waiting_on_you" | "answered" | "closed";
111364
+ /** @enum {string} */
111365
+ status: "open" | "pending" | "solved" | "closed";
111366
+ subject: string;
111367
+ };
111368
+ StoreSupportTicketInput: {
111369
+ /** @default false */
111370
+ consent_diagnostics: boolean;
111371
+ /** @description The AI answer read first (`deflectPublicSupportQuestion`); stale ids are ignored. */
111372
+ deflection_id?: components["schemas"]["Uuid"] | null;
111373
+ diagnostics?: components["schemas"]["PluginSupportDiagnostics"];
111374
+ /**
111375
+ * Format: email
111376
+ * @description A reply address; default the member who approved the store.
111377
+ */
111378
+ email?: string;
111379
+ /**
111380
+ * @default help
111381
+ * @enum {string}
111382
+ */
111383
+ kind: "help" | "bug" | "feedback" | "feature_request";
111384
+ locale?: string;
111385
+ message: string;
111386
+ name?: string;
111387
+ subject: string;
111388
+ };
111389
+ StoreSupportTicketList: {
111390
+ answered: number;
111391
+ items: components["schemas"]["StoreSupportTicket"][];
111392
+ next_before: string | null;
111393
+ };
111297
111394
  /** @description An organization's subscription to a plan version. It pins the exact version and carries the **captured** price + entitlements — a purchase-time snapshot that later catalog or FX changes never alter (docs/05 §1). */
111298
111395
  Subscription: {
111299
111396
  /** @description What is still owed and what the last payment covered; `null` when nothing is owed. */
@@ -209787,6 +209884,89 @@ export interface operations {
209787
209884
  429: components["responses"]["TooManyRequests"];
209788
209885
  };
209789
209886
  };
209887
+ listStoreSupportTickets: {
209888
+ parameters: {
209889
+ query?: {
209890
+ before?: string;
209891
+ };
209892
+ header?: never;
209893
+ path?: never;
209894
+ cookie?: never;
209895
+ };
209896
+ requestBody?: never;
209897
+ responses: {
209898
+ /** @description The tickets. */
209899
+ 200: {
209900
+ headers: {
209901
+ [name: string]: unknown;
209902
+ };
209903
+ content: {
209904
+ "application/json": components["schemas"]["StoreSupportTicketList"];
209905
+ };
209906
+ };
209907
+ 401: components["responses"]["Unauthorized"];
209908
+ 429: components["responses"]["TooManyRequests"];
209909
+ };
209910
+ };
209911
+ createStoreSupportTicket: {
209912
+ parameters: {
209913
+ query?: never;
209914
+ header?: never;
209915
+ path?: never;
209916
+ cookie?: never;
209917
+ };
209918
+ requestBody: {
209919
+ content: {
209920
+ "application/json": components["schemas"]["StoreSupportTicketInput"];
209921
+ };
209922
+ };
209923
+ responses: {
209924
+ /** @description Filed. */
209925
+ 201: {
209926
+ headers: {
209927
+ [name: string]: unknown;
209928
+ };
209929
+ content: {
209930
+ "application/json": components["schemas"]["PluginSupportTicketCreated"];
209931
+ };
209932
+ };
209933
+ 401: components["responses"]["Unauthorized"];
209934
+ 422: components["responses"]["UnprocessableEntity"];
209935
+ 429: components["responses"]["TooManyRequests"];
209936
+ };
209937
+ };
209938
+ replyStoreSupportTicket: {
209939
+ parameters: {
209940
+ query?: never;
209941
+ header?: never;
209942
+ path: {
209943
+ reference: string;
209944
+ };
209945
+ cookie?: never;
209946
+ };
209947
+ requestBody: {
209948
+ content: {
209949
+ "application/json": {
209950
+ message: string;
209951
+ };
209952
+ };
209953
+ };
209954
+ responses: {
209955
+ /** @description The ticket after the reply. */
209956
+ 201: {
209957
+ headers: {
209958
+ [name: string]: unknown;
209959
+ };
209960
+ content: {
209961
+ "application/json": components["schemas"]["StoreSupportTicket"];
209962
+ };
209963
+ };
209964
+ 401: components["responses"]["Unauthorized"];
209965
+ 404: components["responses"]["NotFound"];
209966
+ 422: components["responses"]["UnprocessableEntity"];
209967
+ 429: components["responses"]["TooManyRequests"];
209968
+ };
209969
+ };
209790
209970
  exchangeStoreConnectCode: {
209791
209971
  parameters: {
209792
209972
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1652",
3
+ "version": "0.1.1654",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",