@wix/auto_sdk_benefit-programs_balances 1.0.8 → 1.0.10
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/{internal/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.mts} +66 -169
- package/build/{cjs/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.ts} +66 -169
- package/build/index.d.mts +72 -0
- package/build/index.d.ts +72 -0
- package/build/index.js +573 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +538 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/benefit-programs-v1-balance-balances.universal.d.ts → internal/benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.mts} +66 -169
- package/build/internal/{es/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.ts} +66 -169
- package/build/internal/index.d.mts +72 -0
- package/build/internal/index.d.ts +72 -0
- package/build/internal/index.js +573 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +538 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +431 -0
- package/build/internal/meta.d.ts +431 -0
- package/build/internal/meta.js +391 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +360 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +431 -0
- package/build/meta.d.ts +431 -0
- package/build/meta.js +391 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +360 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.js +0 -19
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.js +0 -296
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.js +0 -123
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.js +0 -44
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.js +0 -63
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js +0 -345
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/es/src/benefit-programs-v1-balance-balances.context.js +0 -9
- package/build/es/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/es/src/benefit-programs-v1-balance-balances.http.js +0 -288
- package/build/es/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/es/src/benefit-programs-v1-balance-balances.meta.js +0 -92
- package/build/es/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/es/src/benefit-programs-v1-balance-balances.public.js +0 -29
- package/build/es/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/es/src/benefit-programs-v1-balance-balances.types.js +0 -60
- package/build/es/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js +0 -314
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.js +0 -19
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.js +0 -296
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.js +0 -123
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.js +0 -44
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.js +0 -63
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js +0 -345
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.js +0 -9
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.js +0 -288
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.js +0 -92
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.js +0 -29
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.js +0 -60
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js +0 -314
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { B as Balance, L as ListBalancesOptions, a as ListBalancesResponse, b as BalancesQueryBuilder, C as ChangeBalanceOptions, c as ChangeBalanceResponse, R as RevertBalanceChangeOptions, d as RevertBalanceChangeResponse } from './benefit-programs-v1-balance-balances.universal-qcbBfXdg.js';
|
|
3
|
+
export { a4 as ActionEvent, A as AdjustOptions, M as ApplicationError, j as BalanceAmount, t as BalanceChangeBalanceRequest, u as BalanceChangeBalanceRequestOperationOneOf, z as BalanceExceededLimits, a8 as BalancesQueryResult, O as BulkActionMetadata, N as BulkChangeBalanceResult, D as BulkChangeBalancesRequest, J as BulkChangeBalancesResponse, V as ChangeAlreadyReverted, a9 as ChangeBalanceOptionsOperationOneOf, F as ChangeBalanceRequest, H as ChangeBalanceRequestOperationOneOf, e as ChangeBalanceRequestType, h as CommonIdentificationData, i as CommonIdentificationDataIdOneOf, m as CursorPaging, n as CursorPagingMetadata, p as CursorQuery, q as CursorQueryPagingMethodOneOf, o as Cursors, _ as DomainEvent, $ as DomainEventBodyOneOf, a0 as EntityCreatedEvent, a3 as EntityDeletedEvent, a2 as EntityUpdatedEvent, E as ExtendedFields, G as GetBalanceRequest, k as GetBalanceResponse, Y as GetTransactionReversibilityRequest, Z as GetTransactionReversibilityResponse, a6 as IdentificationData, a7 as IdentificationDataIdOneOf, I as IdentityType, y as Item, K as ItemMetadata, f as LimitRule, l as ListBalancesRequest, a5 as MessageEnvelope, X as NotEnoughBalance, P as PoolInfo, Q as QueryBalancesRequest, s as QueryBalancesResponse, a1 as RestoreInfo, U as RevertBalanceChangeRequest, w as SetInitialOptions, v as SetOptions, S as SortOrder, r as Sorting, x as TransactionDetails, g as TransactionReversibility, T as Type, W as WebhookIdentityType } from './benefit-programs-v1-balance-balances.universal-qcbBfXdg.js';
|
|
4
|
+
|
|
5
|
+
declare function getBalance$1(httpClient: HttpClient): GetBalanceSignature;
|
|
6
|
+
interface GetBalanceSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a balance.
|
|
9
|
+
* @param - ID of the pool associated with the balance to retrieve. This is also the ID of the balance.
|
|
10
|
+
* @returns Retrieved balance.
|
|
11
|
+
*/
|
|
12
|
+
(poolId: string): Promise<Balance>;
|
|
13
|
+
}
|
|
14
|
+
declare function listBalances$1(httpClient: HttpClient): ListBalancesSignature;
|
|
15
|
+
interface ListBalancesSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a list of balances.
|
|
18
|
+
*/
|
|
19
|
+
(options?: ListBalancesOptions | undefined): Promise<ListBalancesResponse>;
|
|
20
|
+
}
|
|
21
|
+
declare function queryBalances$1(httpClient: HttpClient): QueryBalancesSignature;
|
|
22
|
+
interface QueryBalancesSignature {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a query to retrieve a list of balances.
|
|
25
|
+
*
|
|
26
|
+
* The Query Balances method builds a query to retrieve a list of balances and returns a `BalancesQueryBuilder` object.
|
|
27
|
+
*
|
|
28
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
29
|
+
*
|
|
30
|
+
* You can refine the query by chaining `BalancesQueryBuilder` methods onto the query. `BalancesQueryBuilder` methods enable you to filter, sort, and control the results that Query Balances returns.
|
|
31
|
+
*
|
|
32
|
+
* Query Balances has a default paging limit of 50, which you can override.
|
|
33
|
+
*
|
|
34
|
+
* For a full description of the item object, see the object returned for the `items` property in `BalancesQueryResult`.
|
|
35
|
+
*/
|
|
36
|
+
(): BalancesQueryBuilder;
|
|
37
|
+
}
|
|
38
|
+
declare function changeBalance$1(httpClient: HttpClient): ChangeBalanceSignature;
|
|
39
|
+
interface ChangeBalanceSignature {
|
|
40
|
+
/**
|
|
41
|
+
* Changes the number of available credits in a balance.
|
|
42
|
+
*
|
|
43
|
+
* You can adjust or set the number of available credits.
|
|
44
|
+
* @param - ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
45
|
+
* @param - Unique identifier, generated by the client.
|
|
46
|
+
* Used to recognize repeated attempts to make the same request.
|
|
47
|
+
*/
|
|
48
|
+
(poolId: string, idempotencyKey: string, options?: ChangeBalanceOptions | undefined): Promise<ChangeBalanceResponse>;
|
|
49
|
+
}
|
|
50
|
+
declare function revertBalanceChange$1(httpClient: HttpClient): RevertBalanceChangeSignature;
|
|
51
|
+
interface RevertBalanceChangeSignature {
|
|
52
|
+
/**
|
|
53
|
+
* Reverts a transaction created by calling Change Balance.
|
|
54
|
+
*
|
|
55
|
+
* For example, if a transaction increased a balance's available credits by 5,
|
|
56
|
+
* calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5.
|
|
57
|
+
*
|
|
58
|
+
* > **Note:** If the Change Balance call set the balance, Revert Transaction reverts the amount the balance changed by, ensuring subsequent balance changes are still reflected after the reversion.
|
|
59
|
+
* @param - ID of the transaction associated with the balance change to revert.
|
|
60
|
+
* @param - Unique identifier, generated by the client.
|
|
61
|
+
* Used to recognize repeated attempts to make the same request.
|
|
62
|
+
*/
|
|
63
|
+
(transactionId: string, idempotencyKey: string, options?: RevertBalanceChangeOptions | undefined): Promise<RevertBalanceChangeResponse>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const getBalance: MaybeContext<BuildRESTFunction<typeof getBalance$1> & typeof getBalance$1>;
|
|
67
|
+
declare const listBalances: MaybeContext<BuildRESTFunction<typeof listBalances$1> & typeof listBalances$1>;
|
|
68
|
+
declare const queryBalances: MaybeContext<BuildRESTFunction<typeof queryBalances$1> & typeof queryBalances$1>;
|
|
69
|
+
declare const changeBalance: MaybeContext<BuildRESTFunction<typeof changeBalance$1> & typeof changeBalance$1>;
|
|
70
|
+
declare const revertBalanceChange: MaybeContext<BuildRESTFunction<typeof revertBalanceChange$1> & typeof revertBalanceChange$1>;
|
|
71
|
+
|
|
72
|
+
export { Balance, BalancesQueryBuilder, ChangeBalanceOptions, ChangeBalanceResponse, ListBalancesOptions, ListBalancesResponse, RevertBalanceChangeOptions, RevertBalanceChangeResponse, changeBalance, getBalance, listBalances, queryBalances, revertBalanceChange };
|
package/build/index.js
ADDED
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
ChangeBalanceRequestType: () => ChangeBalanceRequestType,
|
|
24
|
+
IdentityType: () => IdentityType,
|
|
25
|
+
LimitRule: () => LimitRule,
|
|
26
|
+
SortOrder: () => SortOrder,
|
|
27
|
+
TransactionReversibility: () => TransactionReversibility,
|
|
28
|
+
Type: () => Type,
|
|
29
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
30
|
+
changeBalance: () => changeBalance4,
|
|
31
|
+
getBalance: () => getBalance4,
|
|
32
|
+
listBalances: () => listBalances4,
|
|
33
|
+
queryBalances: () => queryBalances4,
|
|
34
|
+
revertBalanceChange: () => revertBalanceChange4
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
|
+
|
|
38
|
+
// src/benefit-programs-v1-balance-balances.universal.ts
|
|
39
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
40
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
41
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
42
|
+
|
|
43
|
+
// src/benefit-programs-v1-balance-balances.http.ts
|
|
44
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
45
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
46
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
47
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
48
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
49
|
+
function resolveWixBenefitProgramsV1BalanceBalanceServiceUrl(opts) {
|
|
50
|
+
const domainToMappings = {
|
|
51
|
+
"api._api_base_domain_": [
|
|
52
|
+
{
|
|
53
|
+
srcPath: "/pool-accounts",
|
|
54
|
+
destPath: ""
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
_: [
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
60
|
+
destPath: ""
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"editor._base_domain_": [
|
|
64
|
+
{
|
|
65
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
66
|
+
destPath: ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
70
|
+
destPath: "/v1/balances"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
74
|
+
destPath: "/v1/bulk/balances"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"blocks._base_domain_": [
|
|
78
|
+
{
|
|
79
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
80
|
+
destPath: ""
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
84
|
+
destPath: "/v1/balances"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
88
|
+
destPath: "/v1/bulk/balances"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"create.editorx": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
94
|
+
destPath: ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
98
|
+
destPath: "/v1/balances"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
102
|
+
destPath: "/v1/bulk/balances"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"editor.wixapps.net": [
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
108
|
+
destPath: ""
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
112
|
+
destPath: "/v1/balances"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
116
|
+
destPath: "/v1/bulk/balances"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"manage._base_domain_": [
|
|
120
|
+
{
|
|
121
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
122
|
+
destPath: ""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
126
|
+
destPath: "/v1/balances"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
130
|
+
destPath: "/v1/bulk/balances"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"www._base_domain_": [
|
|
134
|
+
{
|
|
135
|
+
srcPath: "/_api/benefit-programs-pool-accounts",
|
|
136
|
+
destPath: ""
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
140
|
+
destPath: "/v1/balances"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
144
|
+
destPath: "/v1/bulk/balances"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"www.wixapis.com": [
|
|
148
|
+
{
|
|
149
|
+
srcPath: "/benefit-programs/v1/balances",
|
|
150
|
+
destPath: "/v1/balances"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
154
|
+
destPath: "/v1/bulk/balances"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"*.dev.wix-code.com": [
|
|
158
|
+
{
|
|
159
|
+
srcPath: "/_api/benefit-programs/v1/balances",
|
|
160
|
+
destPath: "/v1/balances"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
srcPath: "/_api/benefit-programs/v1/bulk/balances",
|
|
164
|
+
destPath: "/v1/bulk/balances"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
};
|
|
168
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
169
|
+
}
|
|
170
|
+
var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_balances";
|
|
171
|
+
function getBalance(payload) {
|
|
172
|
+
function __getBalance({ host }) {
|
|
173
|
+
const metadata = {
|
|
174
|
+
entityFqdn: "wix.benefit_programs.v1.balance",
|
|
175
|
+
method: "GET",
|
|
176
|
+
methodFqn: "wix.benefit_programs.v1.balance.BalanceService.GetBalance",
|
|
177
|
+
packageName: PACKAGE_NAME,
|
|
178
|
+
url: resolveWixBenefitProgramsV1BalanceBalanceServiceUrl({
|
|
179
|
+
protoPath: "/v1/balances/{poolId}",
|
|
180
|
+
data: payload,
|
|
181
|
+
host
|
|
182
|
+
}),
|
|
183
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
184
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
185
|
+
{
|
|
186
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
187
|
+
paths: [
|
|
188
|
+
{ path: "balance.createdDate" },
|
|
189
|
+
{ path: "balance.updatedDate" }
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
])
|
|
193
|
+
};
|
|
194
|
+
return metadata;
|
|
195
|
+
}
|
|
196
|
+
return __getBalance;
|
|
197
|
+
}
|
|
198
|
+
function listBalances(payload) {
|
|
199
|
+
function __listBalances({ host }) {
|
|
200
|
+
const metadata = {
|
|
201
|
+
entityFqdn: "wix.benefit_programs.v1.balance",
|
|
202
|
+
method: "GET",
|
|
203
|
+
methodFqn: "wix.benefit_programs.v1.balance.BalanceService.ListBalances",
|
|
204
|
+
packageName: PACKAGE_NAME,
|
|
205
|
+
url: resolveWixBenefitProgramsV1BalanceBalanceServiceUrl({
|
|
206
|
+
protoPath: "/v1/balances",
|
|
207
|
+
data: payload,
|
|
208
|
+
host
|
|
209
|
+
}),
|
|
210
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
211
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
212
|
+
{
|
|
213
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
214
|
+
paths: [
|
|
215
|
+
{ path: "balances.createdDate" },
|
|
216
|
+
{ path: "balances.updatedDate" }
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
])
|
|
220
|
+
};
|
|
221
|
+
return metadata;
|
|
222
|
+
}
|
|
223
|
+
return __listBalances;
|
|
224
|
+
}
|
|
225
|
+
function queryBalances(payload) {
|
|
226
|
+
function __queryBalances({ host }) {
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: "wix.benefit_programs.v1.balance",
|
|
229
|
+
method: "POST",
|
|
230
|
+
methodFqn: "wix.benefit_programs.v1.balance.BalanceService.QueryBalances",
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
url: resolveWixBenefitProgramsV1BalanceBalanceServiceUrl({
|
|
233
|
+
protoPath: "/v1/balances/query",
|
|
234
|
+
data: payload,
|
|
235
|
+
host
|
|
236
|
+
}),
|
|
237
|
+
data: payload,
|
|
238
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
239
|
+
{
|
|
240
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
241
|
+
paths: [
|
|
242
|
+
{ path: "balances.createdDate" },
|
|
243
|
+
{ path: "balances.updatedDate" }
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
])
|
|
247
|
+
};
|
|
248
|
+
return metadata;
|
|
249
|
+
}
|
|
250
|
+
return __queryBalances;
|
|
251
|
+
}
|
|
252
|
+
function changeBalance(payload) {
|
|
253
|
+
function __changeBalance({ host }) {
|
|
254
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
255
|
+
{
|
|
256
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
257
|
+
paths: [{ path: "transactionDetails.effectiveDate" }]
|
|
258
|
+
}
|
|
259
|
+
]);
|
|
260
|
+
const metadata = {
|
|
261
|
+
entityFqdn: "wix.benefit_programs.v1.balance",
|
|
262
|
+
method: "POST",
|
|
263
|
+
methodFqn: "wix.benefit_programs.v1.balance.BalanceService.ChangeBalance",
|
|
264
|
+
packageName: PACKAGE_NAME,
|
|
265
|
+
url: resolveWixBenefitProgramsV1BalanceBalanceServiceUrl({
|
|
266
|
+
protoPath: "/v1/balances/{poolId}/change",
|
|
267
|
+
data: serializedData,
|
|
268
|
+
host
|
|
269
|
+
}),
|
|
270
|
+
data: serializedData,
|
|
271
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
272
|
+
{
|
|
273
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
274
|
+
paths: [
|
|
275
|
+
{ path: "balance.createdDate" },
|
|
276
|
+
{ path: "balance.updatedDate" }
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
])
|
|
280
|
+
};
|
|
281
|
+
return metadata;
|
|
282
|
+
}
|
|
283
|
+
return __changeBalance;
|
|
284
|
+
}
|
|
285
|
+
function revertBalanceChange(payload) {
|
|
286
|
+
function __revertBalanceChange({ host }) {
|
|
287
|
+
const metadata = {
|
|
288
|
+
entityFqdn: "wix.benefit_programs.v1.balance",
|
|
289
|
+
method: "POST",
|
|
290
|
+
methodFqn: "wix.benefit_programs.v1.balance.BalanceService.RevertBalanceChange",
|
|
291
|
+
packageName: PACKAGE_NAME,
|
|
292
|
+
url: resolveWixBenefitProgramsV1BalanceBalanceServiceUrl({
|
|
293
|
+
protoPath: "/v1/balances/changes/{transactionId}/revert",
|
|
294
|
+
data: payload,
|
|
295
|
+
host
|
|
296
|
+
}),
|
|
297
|
+
data: payload
|
|
298
|
+
};
|
|
299
|
+
return metadata;
|
|
300
|
+
}
|
|
301
|
+
return __revertBalanceChange;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// src/benefit-programs-v1-balance-balances.universal.ts
|
|
305
|
+
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
306
|
+
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
307
|
+
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
308
|
+
IdentityType2["MEMBER"] = "MEMBER";
|
|
309
|
+
IdentityType2["WIX_USER"] = "WIX_USER";
|
|
310
|
+
return IdentityType2;
|
|
311
|
+
})(IdentityType || {});
|
|
312
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
313
|
+
SortOrder2["ASC"] = "ASC";
|
|
314
|
+
SortOrder2["DESC"] = "DESC";
|
|
315
|
+
return SortOrder2;
|
|
316
|
+
})(SortOrder || {});
|
|
317
|
+
var ChangeBalanceRequestType = /* @__PURE__ */ ((ChangeBalanceRequestType2) => {
|
|
318
|
+
ChangeBalanceRequestType2["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
319
|
+
ChangeBalanceRequestType2["ADJUST"] = "ADJUST";
|
|
320
|
+
ChangeBalanceRequestType2["SET"] = "SET";
|
|
321
|
+
return ChangeBalanceRequestType2;
|
|
322
|
+
})(ChangeBalanceRequestType || {});
|
|
323
|
+
var LimitRule = /* @__PURE__ */ ((LimitRule2) => {
|
|
324
|
+
LimitRule2["UNKNOWN_LIMIT_RULE"] = "UNKNOWN_LIMIT_RULE";
|
|
325
|
+
LimitRule2["FAIL"] = "FAIL";
|
|
326
|
+
LimitRule2["SOFT_ENFORCE"] = "SOFT_ENFORCE";
|
|
327
|
+
LimitRule2["HARD_ENFORCE"] = "HARD_ENFORCE";
|
|
328
|
+
return LimitRule2;
|
|
329
|
+
})(LimitRule || {});
|
|
330
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
331
|
+
Type2["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
332
|
+
return Type2;
|
|
333
|
+
})(Type || {});
|
|
334
|
+
var TransactionReversibility = /* @__PURE__ */ ((TransactionReversibility2) => {
|
|
335
|
+
TransactionReversibility2["TRANSACTION_IS_REVERSIBLE"] = "TRANSACTION_IS_REVERSIBLE";
|
|
336
|
+
TransactionReversibility2["TRANSACTION_ALREADY_REVERSED"] = "TRANSACTION_ALREADY_REVERSED";
|
|
337
|
+
return TransactionReversibility2;
|
|
338
|
+
})(TransactionReversibility || {});
|
|
339
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
340
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
341
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
342
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
343
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
344
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
345
|
+
return WebhookIdentityType2;
|
|
346
|
+
})(WebhookIdentityType || {});
|
|
347
|
+
async function getBalance2(poolId) {
|
|
348
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
349
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ poolId });
|
|
350
|
+
const reqOpts = getBalance(payload);
|
|
351
|
+
sideEffects?.onSiteCall?.();
|
|
352
|
+
try {
|
|
353
|
+
const result = await httpClient.request(reqOpts);
|
|
354
|
+
sideEffects?.onSuccess?.(result);
|
|
355
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.balance;
|
|
356
|
+
} catch (err) {
|
|
357
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
358
|
+
err,
|
|
359
|
+
{
|
|
360
|
+
spreadPathsToArguments: {},
|
|
361
|
+
explicitPathsToArguments: { poolId: "$[0]" },
|
|
362
|
+
singleArgumentUnchanged: false
|
|
363
|
+
},
|
|
364
|
+
["poolId"]
|
|
365
|
+
);
|
|
366
|
+
sideEffects?.onError?.(err);
|
|
367
|
+
throw transformedError;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
async function listBalances2(options) {
|
|
371
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
372
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
373
|
+
poolIds: options?.poolIds,
|
|
374
|
+
cursorPaging: options?.cursorPaging
|
|
375
|
+
});
|
|
376
|
+
const reqOpts = listBalances(payload);
|
|
377
|
+
sideEffects?.onSiteCall?.();
|
|
378
|
+
try {
|
|
379
|
+
const result = await httpClient.request(reqOpts);
|
|
380
|
+
sideEffects?.onSuccess?.(result);
|
|
381
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
382
|
+
} catch (err) {
|
|
383
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
384
|
+
err,
|
|
385
|
+
{
|
|
386
|
+
spreadPathsToArguments: {},
|
|
387
|
+
explicitPathsToArguments: {
|
|
388
|
+
poolIds: "$[0].poolIds",
|
|
389
|
+
cursorPaging: "$[0].cursorPaging"
|
|
390
|
+
},
|
|
391
|
+
singleArgumentUnchanged: false
|
|
392
|
+
},
|
|
393
|
+
["options"]
|
|
394
|
+
);
|
|
395
|
+
sideEffects?.onError?.(err);
|
|
396
|
+
throw transformedError;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function queryBalances2() {
|
|
400
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
401
|
+
return (0, import_query_builder.queryBuilder)({
|
|
402
|
+
func: async (payload) => {
|
|
403
|
+
const reqOpts = queryBalances(payload);
|
|
404
|
+
sideEffects?.onSiteCall?.();
|
|
405
|
+
try {
|
|
406
|
+
const result = await httpClient.request(reqOpts);
|
|
407
|
+
sideEffects?.onSuccess?.(result);
|
|
408
|
+
return result;
|
|
409
|
+
} catch (err) {
|
|
410
|
+
sideEffects?.onError?.(err);
|
|
411
|
+
throw err;
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
requestTransformer: (query) => {
|
|
415
|
+
const args = [query, {}];
|
|
416
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
417
|
+
...args?.[1],
|
|
418
|
+
query: args?.[0]
|
|
419
|
+
});
|
|
420
|
+
},
|
|
421
|
+
responseTransformer: ({ data }) => {
|
|
422
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
423
|
+
return {
|
|
424
|
+
items: transformedData?.balances,
|
|
425
|
+
pagingMetadata: transformedData?.metadata
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
errorTransformer: (err) => {
|
|
429
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
430
|
+
spreadPathsToArguments: {},
|
|
431
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
432
|
+
singleArgumentUnchanged: false
|
|
433
|
+
});
|
|
434
|
+
throw transformedError;
|
|
435
|
+
},
|
|
436
|
+
pagingMethod: "CURSOR",
|
|
437
|
+
transformationPaths: {}
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
async function changeBalance2(poolId, idempotencyKey, options) {
|
|
441
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
442
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
443
|
+
poolId,
|
|
444
|
+
idempotencyKey,
|
|
445
|
+
instructingParty: options?.instructingParty,
|
|
446
|
+
type: options?.type,
|
|
447
|
+
adjustOptions: options?.adjustOptions,
|
|
448
|
+
setOptions: options?.setOptions,
|
|
449
|
+
transactionDetails: options?.transactionDetails
|
|
450
|
+
});
|
|
451
|
+
const reqOpts = changeBalance(payload);
|
|
452
|
+
sideEffects?.onSiteCall?.();
|
|
453
|
+
try {
|
|
454
|
+
const result = await httpClient.request(reqOpts);
|
|
455
|
+
sideEffects?.onSuccess?.(result);
|
|
456
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
457
|
+
} catch (err) {
|
|
458
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
459
|
+
err,
|
|
460
|
+
{
|
|
461
|
+
spreadPathsToArguments: {},
|
|
462
|
+
explicitPathsToArguments: {
|
|
463
|
+
poolId: "$[0]",
|
|
464
|
+
idempotencyKey: "$[1]",
|
|
465
|
+
instructingParty: "$[2].instructingParty",
|
|
466
|
+
type: "$[2].type",
|
|
467
|
+
adjustOptions: "$[2].adjustOptions",
|
|
468
|
+
setOptions: "$[2].setOptions",
|
|
469
|
+
transactionDetails: "$[2].transactionDetails"
|
|
470
|
+
},
|
|
471
|
+
singleArgumentUnchanged: false
|
|
472
|
+
},
|
|
473
|
+
["poolId", "idempotencyKey", "options"]
|
|
474
|
+
);
|
|
475
|
+
sideEffects?.onError?.(err);
|
|
476
|
+
throw transformedError;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
async function revertBalanceChange2(transactionId, idempotencyKey, options) {
|
|
480
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
481
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
482
|
+
transactionId,
|
|
483
|
+
idempotencyKey,
|
|
484
|
+
instructingParty: options?.instructingParty
|
|
485
|
+
});
|
|
486
|
+
const reqOpts = revertBalanceChange(payload);
|
|
487
|
+
sideEffects?.onSiteCall?.();
|
|
488
|
+
try {
|
|
489
|
+
const result = await httpClient.request(reqOpts);
|
|
490
|
+
sideEffects?.onSuccess?.(result);
|
|
491
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
492
|
+
} catch (err) {
|
|
493
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
494
|
+
err,
|
|
495
|
+
{
|
|
496
|
+
spreadPathsToArguments: {},
|
|
497
|
+
explicitPathsToArguments: {
|
|
498
|
+
transactionId: "$[0]",
|
|
499
|
+
idempotencyKey: "$[1]",
|
|
500
|
+
instructingParty: "$[2].instructingParty"
|
|
501
|
+
},
|
|
502
|
+
singleArgumentUnchanged: false
|
|
503
|
+
},
|
|
504
|
+
["transactionId", "idempotencyKey", "options"]
|
|
505
|
+
);
|
|
506
|
+
sideEffects?.onError?.(err);
|
|
507
|
+
throw transformedError;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// src/benefit-programs-v1-balance-balances.public.ts
|
|
512
|
+
function getBalance3(httpClient) {
|
|
513
|
+
return (poolId) => getBalance2(
|
|
514
|
+
poolId,
|
|
515
|
+
// @ts-ignore
|
|
516
|
+
{ httpClient }
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
function listBalances3(httpClient) {
|
|
520
|
+
return (options) => listBalances2(
|
|
521
|
+
options,
|
|
522
|
+
// @ts-ignore
|
|
523
|
+
{ httpClient }
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
function queryBalances3(httpClient) {
|
|
527
|
+
return () => queryBalances2(
|
|
528
|
+
// @ts-ignore
|
|
529
|
+
{ httpClient }
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
function changeBalance3(httpClient) {
|
|
533
|
+
return (poolId, idempotencyKey, options) => changeBalance2(
|
|
534
|
+
poolId,
|
|
535
|
+
idempotencyKey,
|
|
536
|
+
options,
|
|
537
|
+
// @ts-ignore
|
|
538
|
+
{ httpClient }
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
function revertBalanceChange3(httpClient) {
|
|
542
|
+
return (transactionId, idempotencyKey, options) => revertBalanceChange2(
|
|
543
|
+
transactionId,
|
|
544
|
+
idempotencyKey,
|
|
545
|
+
options,
|
|
546
|
+
// @ts-ignore
|
|
547
|
+
{ httpClient }
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// src/benefit-programs-v1-balance-balances.context.ts
|
|
552
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
553
|
+
var getBalance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getBalance3);
|
|
554
|
+
var listBalances4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listBalances3);
|
|
555
|
+
var queryBalances4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryBalances3);
|
|
556
|
+
var changeBalance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(changeBalance3);
|
|
557
|
+
var revertBalanceChange4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(revertBalanceChange3);
|
|
558
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
559
|
+
0 && (module.exports = {
|
|
560
|
+
ChangeBalanceRequestType,
|
|
561
|
+
IdentityType,
|
|
562
|
+
LimitRule,
|
|
563
|
+
SortOrder,
|
|
564
|
+
TransactionReversibility,
|
|
565
|
+
Type,
|
|
566
|
+
WebhookIdentityType,
|
|
567
|
+
changeBalance,
|
|
568
|
+
getBalance,
|
|
569
|
+
listBalances,
|
|
570
|
+
queryBalances,
|
|
571
|
+
revertBalanceChange
|
|
572
|
+
});
|
|
573
|
+
//# sourceMappingURL=index.js.map
|