@snagsolutions/sdk 0.1.0-alpha.67 → 0.1.0-alpha.69

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.69 (2025-06-05)
4
+
5
+ Full Changelog: [v0.1.0-alpha.68...v0.1.0-alpha.69](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.68...v0.1.0-alpha.69)
6
+
7
+ ### Features
8
+
9
+ * **api:** open api update ([95bb4aa](https://github.com/Snag-Solutions/node-sdk/commit/95bb4aa90eeaca239a9db8bfe93c00fda8951d9c))
10
+
11
+ ## 0.1.0-alpha.68 (2025-06-04)
12
+
13
+ Full Changelog: [v0.1.0-alpha.67...v0.1.0-alpha.68](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.67...v0.1.0-alpha.68)
14
+
15
+ ### Features
16
+
17
+ * **api:** open api update ([b3da334](https://github.com/Snag-Solutions/node-sdk/commit/b3da334db07e696bb47c25d2fbbec29c33d99b2a))
18
+
3
19
  ## 0.1.0-alpha.67 (2025-06-04)
4
20
 
5
21
  Full Changelog: [v0.1.0-alpha.66...v0.1.0-alpha.67](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.66...v0.1.0-alpha.67)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snagsolutions/sdk",
3
- "version": "0.1.0-alpha.67",
3
+ "version": "0.1.0-alpha.69",
4
4
  "description": "The official TypeScript library for the Snag Solutions API",
5
5
  "author": "Snag Solutions <dev-feedback@snag-solutions.com>",
6
6
  "types": "./index.d.ts",
@@ -10,7 +10,6 @@ export declare class AccountStreaks extends APIResource {
10
10
  * await client.loyalty.accountStreaks.getStreaks({
11
11
  * loyaltyRuleId:
12
12
  * 'loyaltyRuleId=123e4567-e89b-12d3-a456-426614174001&loyaltyRuleId=123e4567-e89b-12d3-a456-426614174002',
13
- * userId: '123e4567-e89b-12d3-a456-426614174001',
14
13
  * });
15
14
  * ```
16
15
  */
@@ -22,12 +21,36 @@ export declare class AccountStreaks extends APIResource {
22
21
  export type AccountStreakGetStreaksResponse = Array<AccountStreakGetStreaksResponse.AccountStreakGetStreaksResponseItem>;
23
22
  export declare namespace AccountStreakGetStreaksResponse {
24
23
  interface AccountStreakGetStreaksResponseItem {
25
- id: string;
26
- createdAt: string;
27
- expiresAt: string;
24
+ /**
25
+ * ID of the loyalty account streak, null if no streak yet
26
+ */
27
+ id: string | null;
28
+ /**
29
+ * Date and time the streak was created, null if no streak yet
30
+ */
31
+ createdAt: string | null;
32
+ /**
33
+ * Date and time the streak expires, null if no streak yet
34
+ */
35
+ expiresAt: string | null;
36
+ loyaltyRuleId: string;
37
+ milestone: Array<AccountStreakGetStreaksResponseItem.Milestone>;
38
+ /**
39
+ * Number of days in the streak, 0 if no streak
40
+ */
28
41
  streakCount: number;
29
- updatedAt: string;
42
+ /**
43
+ * Date and time the streak was last updated, null if no streak yet
44
+ */
45
+ updatedAt: string | null;
30
46
  userId: string;
47
+ walletAddress: string;
48
+ }
49
+ namespace AccountStreakGetStreaksResponseItem {
50
+ interface Milestone {
51
+ streakAmount: number;
52
+ streakMilestone: number;
53
+ }
31
54
  }
32
55
  }
33
56
  export interface AccountStreakGetStreaksParams {
@@ -35,10 +58,6 @@ export interface AccountStreakGetStreaksParams {
35
58
  * Loyalty rule id(s) to filter by, array or single id
36
59
  */
37
60
  loyaltyRuleId: string | Array<string>;
38
- /**
39
- * User id to filter by
40
- */
41
- userId: string;
42
61
  /**
43
62
  * Maximum number of records to return (max 1000)
44
63
  */
@@ -47,6 +66,14 @@ export interface AccountStreakGetStreaksParams {
47
66
  * Pagination cursor to start after a specific resource ID
48
67
  */
49
68
  startingAfter?: string;
69
+ /**
70
+ * User id to filter by
71
+ */
72
+ userId?: string;
73
+ /**
74
+ * Wallet address to filter by
75
+ */
76
+ walletAddress?: string;
50
77
  }
51
78
  export declare namespace AccountStreaks {
52
79
  export { type AccountStreakGetStreaksResponse as AccountStreakGetStreaksResponse, type AccountStreakGetStreaksParams as AccountStreakGetStreaksParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"account-streaks.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/account-streaks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,UAAU,CACR,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GACzC,KAAK,CAAC,+BAA+B,CAAC,mCAAmC,CAAC,CAAC;AAE7E,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,mCAAmC;QAClD,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,EAAE,MAAM,CAAC;QAElB,WAAW,EAAE,MAAM,CAAC;QAEpB,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}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CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -13,7 +13,6 @@ class AccountStreaks extends resource_1.APIResource {
13
13
  * await client.loyalty.accountStreaks.getStreaks({
14
14
  * loyaltyRuleId:
15
15
  * 'loyaltyRuleId=123e4567-e89b-12d3-a456-426614174001&loyaltyRuleId=123e4567-e89b-12d3-a456-426614174002',
16
- * userId: '123e4567-e89b-12d3-a456-426614174001',
17
16
  * });
18
17
  * ```
19
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"account-streaks.js","sourceRoot":"","sources":["../../src/resources/loyalty/account-streaks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,UAAU,CACR,KAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AApBD,wCAoBC"}
1
+ {"version":3,"file":"account-streaks.js","sourceRoot":"","sources":["../../src/resources/loyalty/account-streaks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAnBD,wCAmBC"}
@@ -10,7 +10,6 @@ export class AccountStreaks extends APIResource {
10
10
  * await client.loyalty.accountStreaks.getStreaks({
11
11
  * loyaltyRuleId:
12
12
  * 'loyaltyRuleId=123e4567-e89b-12d3-a456-426614174001&loyaltyRuleId=123e4567-e89b-12d3-a456-426614174002',
13
- * userId: '123e4567-e89b-12d3-a456-426614174001',
14
13
  * });
15
14
  * ```
16
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"account-streaks.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/account-streaks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,UAAU,CACR,KAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
1
+ {"version":3,"file":"account-streaks.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/account-streaks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -13,7 +13,6 @@ export class AccountStreaks extends APIResource {
13
13
  * await client.loyalty.accountStreaks.getStreaks({
14
14
  * loyaltyRuleId:
15
15
  * 'loyaltyRuleId=123e4567-e89b-12d3-a456-426614174001&loyaltyRuleId=123e4567-e89b-12d3-a456-426614174002',
16
- * userId: '123e4567-e89b-12d3-a456-426614174001',
17
16
  * });
18
17
  * ```
19
18
  */
@@ -33,17 +32,46 @@ export type AccountStreakGetStreaksResponse =
33
32
 
34
33
  export namespace AccountStreakGetStreaksResponse {
35
34
  export interface AccountStreakGetStreaksResponseItem {
36
- id: string;
35
+ /**
36
+ * ID of the loyalty account streak, null if no streak yet
37
+ */
38
+ id: string | null;
37
39
 
38
- createdAt: string;
40
+ /**
41
+ * Date and time the streak was created, null if no streak yet
42
+ */
43
+ createdAt: string | null;
39
44
 
40
- expiresAt: string;
45
+ /**
46
+ * Date and time the streak expires, null if no streak yet
47
+ */
48
+ expiresAt: string | null;
41
49
 
50
+ loyaltyRuleId: string;
51
+
52
+ milestone: Array<AccountStreakGetStreaksResponseItem.Milestone>;
53
+
54
+ /**
55
+ * Number of days in the streak, 0 if no streak
56
+ */
42
57
  streakCount: number;
43
58
 
44
- updatedAt: string;
59
+ /**
60
+ * Date and time the streak was last updated, null if no streak yet
61
+ */
62
+ updatedAt: string | null;
45
63
 
46
64
  userId: string;
65
+
66
+ walletAddress: string;
67
+ }
68
+
69
+ export namespace AccountStreakGetStreaksResponseItem {
70
+ export interface Milestone {
71
+ streakAmount: number;
72
+
73
+ streakMilestone: number;
74
+ }
47
75
  }
48
76
  }
49
77
 
@@ -53,11 +81,6 @@ export interface AccountStreakGetStreaksParams {
53
81
  */
54
82
  loyaltyRuleId: string | Array<string>;
55
83
 
56
- /**
57
- * User id to filter by
58
- */
59
- userId: string;
60
-
61
84
  /**
62
85
  * Maximum number of records to return (max 1000)
63
86
  */
@@ -67,6 +90,16 @@ export interface AccountStreakGetStreaksParams {
67
90
  * Pagination cursor to start after a specific resource ID
68
91
  */
69
92
  startingAfter?: string;
93
+
94
+ /**
95
+ * User id to filter by
96
+ */
97
+ userId?: string;
98
+
99
+ /**
100
+ * Wallet address to filter by
101
+ */
102
+ walletAddress?: string;
70
103
  }
71
104
 
72
105
  export declare namespace AccountStreaks {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.67'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.69'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.67";
1
+ export declare const VERSION = "0.1.0-alpha.69";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.67'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.69'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.67'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.69'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map