@zinn-digital/sdk 0.1.1695 → 0.1.1700

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.
@@ -56998,6 +56998,26 @@ export interface paths {
56998
56998
  patch?: never;
56999
56999
  trace?: never;
57000
57000
  };
57001
+ "/v1/store-connect/shopper": {
57002
+ parameters: {
57003
+ query?: never;
57004
+ header?: never;
57005
+ path?: never;
57006
+ cookie?: never;
57007
+ };
57008
+ get?: never;
57009
+ put?: never;
57010
+ /**
57011
+ * The store plugin reads one shopper's text preferences and the last 20 texts this store sent them.
57012
+ * @description Store token only. Feeds the shopper's My Account "Messages" panel (docs/1297 §8.3). The plugin asks only for a number that is the billing phone on one of the signed-in shopper's OWN orders, and lists only the texts whose `ref` is one of those orders (an account phone is typed, so it proves nothing). Scoped to the token's ONE store: another store's consents or texts, even of the same organisation, are never returned. `consents` is every channel + purpose this number has at this store (`active: false` once withdrawn); `messages` holds only texts that were sent, newest first, at most 20. POST so the phone number never appears in a URL or a log. A preference change is posted back to `recordStoreConsents` (`withdrawn: true` to stop).
57013
+ */
57014
+ post: operations["readStoreShopper"];
57015
+ delete?: never;
57016
+ options?: never;
57017
+ head?: never;
57018
+ patch?: never;
57019
+ trace?: never;
57020
+ };
57001
57021
  "/v1/store-connect/status": {
57002
57022
  parameters: {
57003
57023
  query?: never;
@@ -62403,6 +62423,7 @@ export interface components {
62403
62423
  ad_group?: string;
62404
62424
  campaign?: string;
62405
62425
  clicks: number;
62426
+ /** @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not (Microsoft `AllConversions`, Google `metrics.all_conversions`; a day stored before that column read its biddable figure). */
62406
62427
  conversions_milli: number;
62407
62428
  cost_micros: number;
62408
62429
  impressions: number;
@@ -65817,7 +65838,10 @@ export interface components {
65817
65838
  added: string;
65818
65839
  campaign: string;
65819
65840
  clicks: number;
65820
- /** Format: int64 */
65841
+ /**
65842
+ * Format: int64
65843
+ * @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not.
65844
+ */
65821
65845
  conversions_milli: number;
65822
65846
  /** Format: int64 */
65823
65847
  cost_micros: number;
@@ -66158,7 +66182,7 @@ export interface components {
66158
66182
  };
66159
66183
  AdsAiMaxFigures: {
66160
66184
  clicks: number;
66161
- /** @description Conversions x 1000. */
66185
+ /** @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not. */
66162
66186
  conversions_milli: number;
66163
66187
  /** @description Account currency, micros (Google's unit). */
66164
66188
  cost_micros: number;
@@ -66235,7 +66259,10 @@ export interface components {
66235
66259
  clicks: number;
66236
66260
  /** Format: int64 */
66237
66261
  conv_rate_bp: number | null;
66238
- /** Format: int64 */
66262
+ /**
66263
+ * Format: int64
66264
+ * @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not (Microsoft `AllConversions`, Google `metrics.all_conversions`; a day stored before that column read its biddable figure).
66265
+ */
66239
66266
  conversions_milli: number;
66240
66267
  /** Format: int64 */
66241
66268
  cost_micros: number;
@@ -66615,6 +66642,7 @@ export interface components {
66615
66642
  AdsAnalyticsSeries: {
66616
66643
  buckets?: string[];
66617
66644
  clicks: number[];
66645
+ /** @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not (Microsoft `AllConversions`, Google `metrics.all_conversions`; a day stored before that column read its biddable figure). One per bucket. */
66618
66646
  conversions_milli: number[];
66619
66647
  cost_micros: number[];
66620
66648
  impressions: number[];
@@ -66673,7 +66701,7 @@ export interface components {
66673
66701
  min_conversions: number;
66674
66702
  /**
66675
66703
  * Format: int64
66676
- * @description The tracked accounts' network-reported conversions (every primary action).
66704
+ * @description BIDDABLE: the tracked accounts' conversions on the goals that count for bidding (every primary action). A sale on any other goal is still RECORDED by the network and is not in this figure; the dashboard labels it 'what the networks' bidding can see'.
66677
66705
  */
66678
66706
  network_conversions_milli: number;
66679
66707
  /** Format: int64 */
@@ -66707,7 +66735,10 @@ export interface components {
66707
66735
  /** Format: int64 */
66708
66736
  measured_conversions: number;
66709
66737
  network: string;
66710
- /** Format: int64 */
66738
+ /**
66739
+ * Format: int64
66740
+ * @description BIDDABLE: this account's conversions on the goals that count for bidding; a sale on any other goal is recorded by the network but not counted here.
66741
+ */
66711
66742
  network_conversions_milli: number;
66712
66743
  };
66713
66744
  AdsAnalyticsTruthCheck: {
@@ -68885,7 +68916,10 @@ export interface components {
68885
68916
  AdsImportedHistory: {
68886
68917
  /** Format: int64 */
68887
68918
  clicks: number;
68888
- /** Format: int64 */
68919
+ /**
68920
+ * Format: int64
68921
+ * @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not.
68922
+ */
68889
68923
  conversions_milli: number;
68890
68924
  /** Format: int64 */
68891
68925
  cost_micros: number;
@@ -70652,7 +70686,10 @@ export interface components {
70652
70686
  AdsReportFigures: {
70653
70687
  /** Format: int64 */
70654
70688
  clicks: number;
70655
- /** Format: int64 */
70689
+ /**
70690
+ * Format: int64
70691
+ * @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not (Microsoft `AllConversions`, Google `metrics.all_conversions`; a day stored before that column read its biddable figure).
70692
+ */
70656
70693
  conversions_milli: number;
70657
70694
  /** Format: int64 */
70658
70695
  cost_micros: number;
@@ -70682,6 +70719,7 @@ export interface components {
70682
70719
  client_org_id: string;
70683
70720
  /** Format: uuid */
70684
70721
  connection_id: string;
70722
+ /** @description BIDDABLE conversions x 1000 only (the goals the network bids on). Kept under its old name so a saved Looker Studio report never changes meaning; see recorded_conversions_milli. */
70685
70723
  conversions_milli: number;
70686
70724
  cost_micros: number;
70687
70725
  currency: string;
@@ -70689,6 +70727,8 @@ export interface components {
70689
70727
  day: string;
70690
70728
  impressions: number;
70691
70729
  platform: string;
70730
+ /** @description RECORDED conversions x 1000 (MSALLCONV-FU2): every conversion the network recorded, biddable goal or not (Microsoft `AllConversions`, Google `metrics.all_conversions`; a day stored before that column read its biddable figure). */
70731
+ recorded_conversions_milli: number;
70692
70732
  value_micros: number;
70693
70733
  }[];
70694
70734
  /** Format: date */
@@ -70960,7 +71000,7 @@ export interface components {
70960
71000
  /** @enum {string} */
70961
71001
  trigger: "schedule" | "manual";
70962
71002
  };
70963
- /** @description A customer rule (za-196, docs/1006 §46): IF `metric` over the last `window_days` days `comparator` `threshold` THEN `action`. Closed sets only. Units of `threshold` by metric: `cost`, `cost_without_conversions`, `cpa` — integer minor units of the account currency; `clicks`, `impressions`, `conversions` — whole counts; `ctr`, `conversion_rate` — basis points (1% = 100); `roas` — percent (conversion value / cost x 100). A rate with nothing under it (no impressions, clicks, conversions or cost) has no reading and never matches. */
71003
+ /** @description A customer rule (za-196, docs/1006 §46): IF `metric` over the last `window_days` days `comparator` `threshold` THEN `action`. Closed sets only. Units of `threshold` by metric: `cost`, `cost_without_conversions`, `cpa` — integer minor units of the account currency; `clicks`, `impressions`, `conversions` — whole counts; `ctr`, `conversion_rate` — basis points (1% = 100); `roas` — percent (conversion value / cost x 100). A rate with nothing under it (no impressions, clicks, conversions or cost) has no reading and never matches. `conversions`, `cpa`, `conversion_rate` and `cost_without_conversions` read the RECORDED conversions (every conversion the network recorded, including those not used for bidding; Microsoft All conversions), never the narrower biddable figure; a day the network did not report has no reading and is never read as zero. */
70964
71004
  AdsRuleSpec: {
70965
71005
  /** @enum {string} */
70966
71006
  action?: "notify" | "pause_campaign" | "budget_down" | "budget_up";
@@ -112436,6 +112476,34 @@ export interface components {
112436
112476
  /** @description Events already handled (never sent twice). */
112437
112477
  duplicates: number;
112438
112478
  };
112479
+ StoreShopper: {
112480
+ consents: {
112481
+ active: boolean;
112482
+ /** Format: date-time */
112483
+ changed_at: string;
112484
+ /** @enum {string} */
112485
+ channel: "sms" | "whatsapp";
112486
+ /** @enum {string} */
112487
+ purpose: "updates" | "marketing";
112488
+ }[];
112489
+ messages: {
112490
+ /** @enum {string} */
112491
+ channel: "sms" | "whatsapp";
112492
+ /** @description The event kind, e.g. order_received, order_shipped. */
112493
+ kind: string;
112494
+ /** @description The language the text went out in. */
112495
+ locale: string;
112496
+ order_number: string;
112497
+ ref: string;
112498
+ /** Format: date-time */
112499
+ sent_at: string;
112500
+ }[];
112501
+ phone: string;
112502
+ };
112503
+ StoreShopperQuery: {
112504
+ /** @description E.164, the signed-in shopper's own number. */
112505
+ phone: string;
112506
+ };
112439
112507
  StoreSupportTicket: {
112440
112508
  /** Format: date-time */
112441
112509
  created_at: string;
@@ -212074,6 +212142,33 @@ export interface operations {
212074
212142
  503: components["responses"]["ServiceUnavailable"];
212075
212143
  };
212076
212144
  };
212145
+ readStoreShopper: {
212146
+ parameters: {
212147
+ query?: never;
212148
+ header?: never;
212149
+ path?: never;
212150
+ cookie?: never;
212151
+ };
212152
+ requestBody: {
212153
+ content: {
212154
+ "application/json": components["schemas"]["StoreShopperQuery"];
212155
+ };
212156
+ };
212157
+ responses: {
212158
+ /** @description The shopper's preferences and recent texts. */
212159
+ 200: {
212160
+ headers: {
212161
+ [name: string]: unknown;
212162
+ };
212163
+ content: {
212164
+ "application/json": components["schemas"]["StoreShopper"];
212165
+ };
212166
+ };
212167
+ 401: components["responses"]["Unauthorized"];
212168
+ 422: components["responses"]["UnprocessableEntity"];
212169
+ 429: components["responses"]["TooManyRequests"];
212170
+ };
212171
+ };
212077
212172
  getStoreConnectStatus: {
212078
212173
  parameters: {
212079
212174
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1695",
3
+ "version": "0.1.1700",
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>",