@snagsolutions/sdk 0.1.0-alpha.130 → 0.1.0-alpha.131
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 +8 -0
- package/package.json +1 -1
- package/resources/loyalty/questions-responses.d.ts +24 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions.d.ts +6 -4
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +0 -2
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +0 -2
- package/resources/loyalty/questions.mjs.map +1 -1
- package/src/resources/loyalty/questions-responses.ts +30 -0
- package/src/resources/loyalty/questions.ts +7 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.131 (2025-08-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.130...v0.1.0-alpha.131](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.130...v0.1.0-alpha.131)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** open api update ([9f47bd2](https://github.com/Snag-Solutions/node-sdk/commit/9f47bd23030eeeaebee62fdeff50dc9350834e53))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.130 (2025-08-26)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.129...v0.1.0-alpha.130](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.129...v0.1.0-alpha.130)
|
package/package.json
CHANGED
|
@@ -95,16 +95,40 @@ export declare namespace QuestionsResponseSubmitResponse {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
export interface QuestionsResponseListParams {
|
|
98
|
+
/**
|
|
99
|
+
* UUID of the organization to filter responses
|
|
100
|
+
*/
|
|
101
|
+
organizationId?: string;
|
|
98
102
|
/**
|
|
99
103
|
* UUID(s) of the questions to filter responses
|
|
100
104
|
*/
|
|
101
105
|
questionsId?: string | Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* UUID of the user to filter responses
|
|
108
|
+
*/
|
|
109
|
+
userId?: string;
|
|
110
|
+
/**
|
|
111
|
+
* UUID of the website to filter responses
|
|
112
|
+
*/
|
|
113
|
+
websiteId?: string;
|
|
102
114
|
}
|
|
103
115
|
export interface QuestionsResponseSubmitParams {
|
|
104
116
|
/**
|
|
105
117
|
* UUID of the selected choice
|
|
106
118
|
*/
|
|
107
119
|
loyaltyQuestionChoiceId: string;
|
|
120
|
+
/**
|
|
121
|
+
* UUID of the organization to filter responses
|
|
122
|
+
*/
|
|
123
|
+
organizationId?: string;
|
|
124
|
+
/**
|
|
125
|
+
* UUID of the user who submitted the response
|
|
126
|
+
*/
|
|
127
|
+
userId?: string;
|
|
128
|
+
/**
|
|
129
|
+
* UUID of the website to filter responses
|
|
130
|
+
*/
|
|
131
|
+
websiteId?: string;
|
|
108
132
|
}
|
|
109
133
|
export declare namespace QuestionsResponses {
|
|
110
134
|
export { type QuestionsResponseListResponse as QuestionsResponseListResponse, type QuestionsResponseSubmitResponse as QuestionsResponseSubmitResponse, type QuestionsResponseListParams as QuestionsResponseListParams, type QuestionsResponseSubmitParams as QuestionsResponseSubmitParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions-responses.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,2BAA2B,EACnC,OAAO,CA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AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,QAAQ;QACvB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,uBAAuB,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"questions-responses.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IACjD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAWnF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,KAAK,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;CAC1D;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,QAAQ;QACvB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,EAAE,OAAO,CAAC;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AC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -40,8 +40,6 @@ export declare class Questions extends APIResource {
|
|
|
40
40
|
* ```ts
|
|
41
41
|
* const questions = await client.loyalty.questions.list({
|
|
42
42
|
* loyaltyRuleIds: '123e4567-e89b-12d3-a456-426614174000',
|
|
43
|
-
* organizationId: '123e4567-e89b-12d3-a456-426614174002',
|
|
44
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174001',
|
|
45
43
|
* });
|
|
46
44
|
* ```
|
|
47
45
|
*/
|
|
@@ -171,11 +169,15 @@ export interface QuestionListParams {
|
|
|
171
169
|
/**
|
|
172
170
|
* UUID of the organization to fetch questions for
|
|
173
171
|
*/
|
|
174
|
-
organizationId
|
|
172
|
+
organizationId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* UUID of the user to fetch questions for
|
|
175
|
+
*/
|
|
176
|
+
userId?: string;
|
|
175
177
|
/**
|
|
176
178
|
* UUID of the website to fetch questions for
|
|
177
179
|
*/
|
|
178
|
-
websiteId
|
|
180
|
+
websiteId?: string;
|
|
179
181
|
}
|
|
180
182
|
export declare namespace Questions {
|
|
181
183
|
export { type QuestionCreateResponse as QuestionCreateResponse, type QuestionUpdateResponse as QuestionUpdateResponse, type QuestionListResponse as QuestionListResponse, type QuestionCreateParams as QuestionCreateParams, type QuestionUpdateParams as QuestionUpdateParams, type QuestionListParams as QuestionListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1G;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1C
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1G;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAGtG;AAED;;GAEG;AACH,MAAM,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,8 +47,6 @@ class Questions extends resource_1.APIResource {
|
|
|
47
47
|
* ```ts
|
|
48
48
|
* const questions = await client.loyalty.questions.list({
|
|
49
49
|
* loyaltyRuleIds: '123e4567-e89b-12d3-a456-426614174000',
|
|
50
|
-
* organizationId: '123e4567-e89b-12d3-a456-426614174002',
|
|
51
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174001',
|
|
52
50
|
* });
|
|
53
51
|
* ```
|
|
54
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAyB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAxDD,8BAwDC"}
|
|
@@ -44,8 +44,6 @@ export class Questions extends APIResource {
|
|
|
44
44
|
* ```ts
|
|
45
45
|
* const questions = await client.loyalty.questions.list({
|
|
46
46
|
* loyaltyRuleIds: '123e4567-e89b-12d3-a456-426614174000',
|
|
47
|
-
* organizationId: '123e4567-e89b-12d3-a456-426614174002',
|
|
48
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174001',
|
|
49
47
|
* });
|
|
50
48
|
* ```
|
|
51
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"questions.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAyB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -138,10 +138,25 @@ export namespace QuestionsResponseSubmitResponse {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
export interface QuestionsResponseListParams {
|
|
141
|
+
/**
|
|
142
|
+
* UUID of the organization to filter responses
|
|
143
|
+
*/
|
|
144
|
+
organizationId?: string;
|
|
145
|
+
|
|
141
146
|
/**
|
|
142
147
|
* UUID(s) of the questions to filter responses
|
|
143
148
|
*/
|
|
144
149
|
questionsId?: string | Array<string>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* UUID of the user to filter responses
|
|
153
|
+
*/
|
|
154
|
+
userId?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* UUID of the website to filter responses
|
|
158
|
+
*/
|
|
159
|
+
websiteId?: string;
|
|
145
160
|
}
|
|
146
161
|
|
|
147
162
|
export interface QuestionsResponseSubmitParams {
|
|
@@ -149,6 +164,21 @@ export interface QuestionsResponseSubmitParams {
|
|
|
149
164
|
* UUID of the selected choice
|
|
150
165
|
*/
|
|
151
166
|
loyaltyQuestionChoiceId: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* UUID of the organization to filter responses
|
|
170
|
+
*/
|
|
171
|
+
organizationId?: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* UUID of the user who submitted the response
|
|
175
|
+
*/
|
|
176
|
+
userId?: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* UUID of the website to filter responses
|
|
180
|
+
*/
|
|
181
|
+
websiteId?: string;
|
|
152
182
|
}
|
|
153
183
|
|
|
154
184
|
export declare namespace QuestionsResponses {
|
|
@@ -53,8 +53,6 @@ export class Questions extends APIResource {
|
|
|
53
53
|
* ```ts
|
|
54
54
|
* const questions = await client.loyalty.questions.list({
|
|
55
55
|
* loyaltyRuleIds: '123e4567-e89b-12d3-a456-426614174000',
|
|
56
|
-
* organizationId: '123e4567-e89b-12d3-a456-426614174002',
|
|
57
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174001',
|
|
58
56
|
* });
|
|
59
57
|
* ```
|
|
60
58
|
*/
|
|
@@ -221,12 +219,17 @@ export interface QuestionListParams {
|
|
|
221
219
|
/**
|
|
222
220
|
* UUID of the organization to fetch questions for
|
|
223
221
|
*/
|
|
224
|
-
organizationId
|
|
222
|
+
organizationId?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* UUID of the user to fetch questions for
|
|
226
|
+
*/
|
|
227
|
+
userId?: string;
|
|
225
228
|
|
|
226
229
|
/**
|
|
227
230
|
* UUID of the website to fetch questions for
|
|
228
231
|
*/
|
|
229
|
-
websiteId
|
|
232
|
+
websiteId?: string;
|
|
230
233
|
}
|
|
231
234
|
|
|
232
235
|
export declare namespace Questions {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.131'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.131";
|
|
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.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.131'; // 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.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.131'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|