@wix/auto_sdk_benefit-programs_balances 1.0.2 → 1.0.4
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/build/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +1 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.js +1 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +1 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +11 -11
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts +12 -12
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.http.d.ts +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.http.js +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.public.d.ts +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.types.d.ts +11 -11
- package/build/es/src/benefit-programs-v1-balance-balances.universal.d.ts +12 -12
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.js +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +11 -11
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts +12 -12
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.d.ts +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.js +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.d.ts +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.d.ts +11 -11
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.d.ts +12 -12
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js +1 -1
- package/package.json +4 -4
|
@@ -24,7 +24,7 @@ export declare function queryBalances(payload: object): RequestOptionsFactory<an
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function changeBalance(payload: object): RequestOptionsFactory<any>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Reverts a transaction created by calling Change Balance.
|
|
28
28
|
*
|
|
29
29
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
30
30
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -281,7 +281,7 @@ function changeBalance(payload) {
|
|
|
281
281
|
}
|
|
282
282
|
exports.changeBalance = changeBalance;
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* Reverts a transaction created by calling Change Balance.
|
|
285
285
|
*
|
|
286
286
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
287
287
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -51,7 +51,7 @@ interface ChangeBalanceSignature {
|
|
|
51
51
|
export declare function revertBalanceChange(httpClient: HttpClient): RevertBalanceChangeSignature;
|
|
52
52
|
interface RevertBalanceChangeSignature {
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Reverts a transaction created by calling Change Balance.
|
|
55
55
|
*
|
|
56
56
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
57
57
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -927,7 +927,7 @@ export interface ChangeBalanceOptionsOperationOneOf {
|
|
|
927
927
|
setOptions?: SetOptions;
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
930
|
-
*
|
|
930
|
+
* Reverts a transaction created by calling Change Balance.
|
|
931
931
|
*
|
|
932
932
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
933
933
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -293,7 +293,7 @@ async function changeBalance(poolId, idempotencyKey, options) {
|
|
|
293
293
|
}
|
|
294
294
|
exports.changeBalance = changeBalance;
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* Reverts a transaction created by calling Change Balance.
|
|
297
297
|
*
|
|
298
298
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
299
299
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -24,7 +24,7 @@ export declare function queryBalances(payload: object): RequestOptionsFactory<an
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function changeBalance(payload: object): RequestOptionsFactory<any>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Reverts a transaction created by calling Change Balance.
|
|
28
28
|
*
|
|
29
29
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
30
30
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -274,7 +274,7 @@ export function changeBalance(payload) {
|
|
|
274
274
|
return __changeBalance;
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
|
-
*
|
|
277
|
+
* Reverts a transaction created by calling Change Balance.
|
|
278
278
|
*
|
|
279
279
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
280
280
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -51,7 +51,7 @@ interface ChangeBalanceSignature {
|
|
|
51
51
|
export declare function revertBalanceChange(httpClient: HttpClient): RevertBalanceChangeSignature;
|
|
52
52
|
interface RevertBalanceChangeSignature {
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Reverts a transaction created by calling Change Balance.
|
|
55
55
|
*
|
|
56
56
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
57
57
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -927,7 +927,7 @@ export interface ChangeBalanceOptionsOperationOneOf {
|
|
|
927
927
|
setOptions?: SetOptions;
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
930
|
-
*
|
|
930
|
+
* Reverts a transaction created by calling Change Balance.
|
|
931
931
|
*
|
|
932
932
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
933
933
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -263,7 +263,7 @@ export async function changeBalance(poolId, idempotencyKey, options) {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
*
|
|
266
|
+
* Reverts a transaction created by calling Change Balance.
|
|
267
267
|
*
|
|
268
268
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
269
269
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -24,7 +24,7 @@ export declare function queryBalances(payload: object): RequestOptionsFactory<an
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function changeBalance(payload: object): RequestOptionsFactory<any>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Reverts a transaction created by calling Change Balance.
|
|
28
28
|
*
|
|
29
29
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
30
30
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -281,7 +281,7 @@ function changeBalance(payload) {
|
|
|
281
281
|
}
|
|
282
282
|
exports.changeBalance = changeBalance;
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* Reverts a transaction created by calling Change Balance.
|
|
285
285
|
*
|
|
286
286
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
287
287
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -51,7 +51,7 @@ interface ChangeBalanceSignature {
|
|
|
51
51
|
export declare function revertBalanceChange(httpClient: HttpClient): RevertBalanceChangeSignature;
|
|
52
52
|
interface RevertBalanceChangeSignature {
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Reverts a transaction created by calling Change Balance.
|
|
55
55
|
*
|
|
56
56
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
57
57
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -927,7 +927,7 @@ export interface ChangeBalanceOptionsOperationOneOf {
|
|
|
927
927
|
setOptions?: SetOptions;
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
930
|
-
*
|
|
930
|
+
* Reverts a transaction created by calling Change Balance.
|
|
931
931
|
*
|
|
932
932
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
933
933
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -293,7 +293,7 @@ async function changeBalance(poolId, idempotencyKey, options) {
|
|
|
293
293
|
}
|
|
294
294
|
exports.changeBalance = changeBalance;
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* Reverts a transaction created by calling Change Balance.
|
|
297
297
|
*
|
|
298
298
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
299
299
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -24,7 +24,7 @@ export declare function queryBalances(payload: object): RequestOptionsFactory<an
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function changeBalance(payload: object): RequestOptionsFactory<any>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Reverts a transaction created by calling Change Balance.
|
|
28
28
|
*
|
|
29
29
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
30
30
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -274,7 +274,7 @@ export function changeBalance(payload) {
|
|
|
274
274
|
return __changeBalance;
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
|
-
*
|
|
277
|
+
* Reverts a transaction created by calling Change Balance.
|
|
278
278
|
*
|
|
279
279
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
280
280
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -51,7 +51,7 @@ interface ChangeBalanceSignature {
|
|
|
51
51
|
export declare function revertBalanceChange(httpClient: HttpClient): RevertBalanceChangeSignature;
|
|
52
52
|
interface RevertBalanceChangeSignature {
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Reverts a transaction created by calling Change Balance.
|
|
55
55
|
*
|
|
56
56
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
57
57
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -172,7 +172,7 @@ export interface ListBalancesRequest {
|
|
|
172
172
|
}
|
|
173
173
|
export interface CursorPaging {
|
|
174
174
|
/**
|
|
175
|
-
* Maximum number of items to return
|
|
175
|
+
* Maximum number of items to return.
|
|
176
176
|
* @max 100
|
|
177
177
|
*/
|
|
178
178
|
limit?: number | null;
|
|
@@ -227,17 +227,13 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
227
227
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
228
|
cursorPaging?: CursorPaging;
|
|
229
229
|
/**
|
|
230
|
-
* Filter object
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* "fieldName2":{"$operator":"value2"}
|
|
234
|
-
* }`
|
|
235
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
230
|
+
* Filter object.
|
|
231
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
232
|
+
* for more information.
|
|
236
233
|
*/
|
|
237
234
|
filter?: Record<string, any> | null;
|
|
238
235
|
/**
|
|
239
|
-
*
|
|
240
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
236
|
+
* List of sort objects.
|
|
241
237
|
* @maxSize 5
|
|
242
238
|
*/
|
|
243
239
|
sort?: Sorting[];
|
|
@@ -249,11 +245,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
249
245
|
}
|
|
250
246
|
export interface Sorting {
|
|
251
247
|
/**
|
|
252
|
-
*
|
|
248
|
+
* Field to sort by.
|
|
253
249
|
* @maxLength 512
|
|
254
250
|
*/
|
|
255
251
|
fieldName?: string;
|
|
256
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
254
|
+
*
|
|
255
|
+
* Default: `ASC`
|
|
256
|
+
*/
|
|
257
257
|
order?: SortOrder;
|
|
258
258
|
}
|
|
259
259
|
export declare enum SortOrder {
|
|
@@ -927,7 +927,7 @@ export interface ChangeBalanceOptionsOperationOneOf {
|
|
|
927
927
|
setOptions?: SetOptions;
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
930
|
-
*
|
|
930
|
+
* Reverts a transaction created by calling Change Balance.
|
|
931
931
|
*
|
|
932
932
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
933
933
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
@@ -263,7 +263,7 @@ export async function changeBalance(poolId, idempotencyKey, options) {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
*
|
|
266
|
+
* Reverts a transaction created by calling Change Balance.
|
|
267
267
|
*
|
|
268
268
|
* For example, if a transaction increased a balance's available credits by 5,
|
|
269
269
|
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_benefit-programs_balances",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"service-plugins"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@wix/sdk-runtime": "^0.3.
|
|
32
|
-
"@wix/sdk-types": "^1.
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.42",
|
|
32
|
+
"@wix/sdk-types": "^1.13.9"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.3.2"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.benefit_programs.v1.balance"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "9cbf75cbcaa6b47eb944fbbee7421119d2e8143361c8a9fec8a5aafb"
|
|
52
52
|
}
|