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

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.68 (2025-06-04)
4
+
5
+ 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)
6
+
7
+ ### Features
8
+
9
+ * **api:** open api update ([b3da334](https://github.com/Snag-Solutions/node-sdk/commit/b3da334db07e696bb47c25d2fbbec29c33d99b2a))
10
+
3
11
  ## 0.1.0-alpha.67 (2025-06-04)
4
12
 
5
13
  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.68",
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
  */
@@ -25,9 +24,17 @@ export declare namespace AccountStreakGetStreaksResponse {
25
24
  id: string;
26
25
  createdAt: string;
27
26
  expiresAt: string;
27
+ milestone: Array<AccountStreakGetStreaksResponseItem.Milestone>;
28
28
  streakCount: number;
29
29
  updatedAt: string;
30
30
  userId: string;
31
+ walletAddress: string;
32
+ }
33
+ namespace AccountStreakGetStreaksResponseItem {
34
+ interface Milestone {
35
+ streakAmount: number;
36
+ streakMilestone: number;
37
+ }
31
38
  }
32
39
  }
33
40
  export interface AccountStreakGetStreaksParams {
@@ -35,10 +42,6 @@ export interface AccountStreakGetStreaksParams {
35
42
  * Loyalty rule id(s) to filter by, array or single id
36
43
  */
37
44
  loyaltyRuleId: string | Array<string>;
38
- /**
39
- * User id to filter by
40
- */
41
- userId: string;
42
45
  /**
43
46
  * Maximum number of records to return (max 1000)
44
47
  */
@@ -47,6 +50,14 @@ export interface AccountStreakGetStreaksParams {
47
50
  * Pagination cursor to start after a specific resource ID
48
51
  */
49
52
  startingAfter?: string;
53
+ /**
54
+ * User id to filter by
55
+ */
56
+ userId?: string;
57
+ /**
58
+ * Wallet address to filter by
59
+ */
60
+ walletAddress?: string;
50
61
  }
51
62
  export declare namespace AccountStreaks {
52
63
  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,SA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AC;QAEpB,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;QAEf,aAAa,EAAE,MAAM,CAAC;KACvB;IAED,UAAiB,mCAAmC,CAAC;QACnD,UAAiB,SAAS;YACxB,YAAY,EAAE,MAAM,CAAC;YAErB,eAAe,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,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
  */
@@ -39,11 +38,23 @@ export namespace AccountStreakGetStreaksResponse {
39
38
 
40
39
  expiresAt: string;
41
40
 
41
+ milestone: Array<AccountStreakGetStreaksResponseItem.Milestone>;
42
+
42
43
  streakCount: number;
43
44
 
44
45
  updatedAt: string;
45
46
 
46
47
  userId: string;
48
+
49
+ walletAddress: string;
50
+ }
51
+
52
+ export namespace AccountStreakGetStreaksResponseItem {
53
+ export interface Milestone {
54
+ streakAmount: number;
55
+
56
+ streakMilestone: number;
57
+ }
47
58
  }
48
59
  }
49
60
 
@@ -53,11 +64,6 @@ export interface AccountStreakGetStreaksParams {
53
64
  */
54
65
  loyaltyRuleId: string | Array<string>;
55
66
 
56
- /**
57
- * User id to filter by
58
- */
59
- userId: string;
60
-
61
67
  /**
62
68
  * Maximum number of records to return (max 1000)
63
69
  */
@@ -67,6 +73,16 @@ export interface AccountStreakGetStreaksParams {
67
73
  * Pagination cursor to start after a specific resource ID
68
74
  */
69
75
  startingAfter?: string;
76
+
77
+ /**
78
+ * User id to filter by
79
+ */
80
+ userId?: string;
81
+
82
+ /**
83
+ * Wallet address to filter by
84
+ */
85
+ walletAddress?: string;
70
86
  }
71
87
 
72
88
  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.68'; // 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.68";
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.68'; // 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.68'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map