@wix/auto_sdk_staff-pay_pay-models 0.0.0-stage → 1.0.1
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/index.d.ts +87 -0
- package/build/cjs/index.js +597 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1304 -0
- package/build/cjs/index.typings.js +527 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1019 -0
- package/build/cjs/meta.js +434 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +87 -0
- package/build/es/index.mjs +559 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1304 -0
- package/build/es/index.typings.mjs +488 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1019 -0
- package/build/es/meta.mjs +394 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +87 -0
- package/build/internal/cjs/index.typings.d.ts +1347 -0
- package/build/internal/cjs/meta.d.ts +1104 -0
- package/build/internal/es/index.d.mts +87 -0
- package/build/internal/es/index.typings.d.mts +1347 -0
- package/build/internal/es/meta.d.mts +1104 -0
- package/meta/package.json +3 -0
- package/package.json +51 -3
- package/README.md +0 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { PayModel, CreatePayModelApplicationErrors, UpdatePayModel, UpdatePayModelApplicationErrors, DeletePayModelApplicationErrors, ArchivePayModelResponse, PayModelsQueryBuilder, PayModelQuery, typedQueryPayModels } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, ApplicationError, ArchivePayModelRequest, AttendanceTier, AttendanceTiersOptions, AttendeeCountBasis, AttendeeCountBasisWithLiterals, BasePlusPerHeadOptions, BulkActionMetadata, BulkDeletePayModelsRequest, BulkDeletePayModelsResponse, BulkPayModelResult, Combinator, CombinatorOptionsOneOf, CombinatorType, CombinatorTypeWithLiterals, CommissionTier, CommissionTierMode, CommissionTierModeWithLiterals, CommonQueryWithEntityContext, ComponentType, ComponentTypeWithLiterals, CostDeduction, CostDeductionKindOneOf, CreatePayModelRequest, CreatePayModelResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePayModelRequest, DeletePayModelResponse, DiscountBasis, DiscountBasisWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExtraAttendeeTier, FlatPerSessionOptions, GetPayModelRequest, GetPayModelResponse, GreaterOfOptions, HourlyOptions, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, PayComponent, PayComponentOptionsOneOf, PayModelQuerySpec, PayModelsQueryResult, PerCourseOptions, PlanSaleCommissionOptions, ProductCommissionOptions, QueryPayModelsRequest, QueryPayModelsResponse, RestoreInfo, RevenueRules, SalaryOptions, ServiceCommissionOptions, SortOrder, SortOrderWithLiterals, Sorting, TaxBasis, TaxBasisWithLiterals, TipsOptions, UnarchivePayModelRequest, UnarchivePayModelResponse, UpdatePayModelRequest, UpdatePayModelResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function createPayModel$1(httpClient: HttpClient): CreatePayModelSignature;
|
|
6
|
+
interface CreatePayModelSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a pay model.
|
|
9
|
+
*
|
|
10
|
+
* Components that don't have an ID get one, and tiers are sorted. A pay model is always created unarchived. To pay a
|
|
11
|
+
* staff member with the pay model, add pay terms that point to it in their staff pay profile.
|
|
12
|
+
* @param - Pay model to create.
|
|
13
|
+
* @returns Created pay model.
|
|
14
|
+
*/
|
|
15
|
+
(payModel: NonNullablePaths<PayModel, `name`, 0>): Promise<NonNullablePaths<PayModel, `name` | `components` | `components.${number}.salaryOptions.amountPerPeriod` | `components.${number}.salaryOptions.prorateByDaysEmployed` | `components.${number}.hourlyOptions.rate` | `components.${number}.hourlyOptions.overtimeEligible` | `components.${number}.hourlyOptions.excludeSessionTime` | `components.${number}.flatPerSessionOptions.amount` | `components.${number}.flatPerSessionOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.includedAttendees` | `components.${number}.basePlusPerHeadOptions.amountPerAdditionalAttendee` | `components.${number}.basePlusPerHeadOptions.countBasis` | `components.${number}.basePlusPerHeadOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.excludeFreeVisits` | `components.${number}.attendanceTiersOptions.countBasis` | `components.${number}.attendanceTiersOptions.zeroWhenCancelled` | `components.${number}.attendanceTiersOptions.excludeFreeVisits` | `components.${number}.serviceCommissionOptions.percent` | `components.${number}.serviceCommissionOptions.tierMode` | `components.${number}.serviceCommissionOptions.revenueRules.discountBasis` | `components.${number}.serviceCommissionOptions.revenueRules.taxBasis` | `components.${number}.productCommissionOptions.percent` | `components.${number}.name` | `components.${number}.type` | `combinator.greaterOfOptions.componentIds` | `combinator.type`, 4> & {
|
|
16
|
+
__applicationErrorsType?: CreatePayModelApplicationErrors;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
declare function getPayModel$1(httpClient: HttpClient): GetPayModelSignature;
|
|
20
|
+
interface GetPayModelSignature {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a pay model.
|
|
23
|
+
* @param - ID of the pay model to retrieve.
|
|
24
|
+
* @returns Retrieved pay model.
|
|
25
|
+
*/
|
|
26
|
+
(payModelId: string): Promise<NonNullablePaths<PayModel, `name` | `components` | `components.${number}.salaryOptions.amountPerPeriod` | `components.${number}.salaryOptions.prorateByDaysEmployed` | `components.${number}.hourlyOptions.rate` | `components.${number}.hourlyOptions.overtimeEligible` | `components.${number}.hourlyOptions.excludeSessionTime` | `components.${number}.flatPerSessionOptions.amount` | `components.${number}.flatPerSessionOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.includedAttendees` | `components.${number}.basePlusPerHeadOptions.amountPerAdditionalAttendee` | `components.${number}.basePlusPerHeadOptions.countBasis` | `components.${number}.basePlusPerHeadOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.excludeFreeVisits` | `components.${number}.attendanceTiersOptions.countBasis` | `components.${number}.attendanceTiersOptions.zeroWhenCancelled` | `components.${number}.attendanceTiersOptions.excludeFreeVisits` | `components.${number}.serviceCommissionOptions.percent` | `components.${number}.serviceCommissionOptions.tierMode` | `components.${number}.serviceCommissionOptions.revenueRules.discountBasis` | `components.${number}.serviceCommissionOptions.revenueRules.taxBasis` | `components.${number}.productCommissionOptions.percent` | `components.${number}.name` | `components.${number}.type` | `combinator.greaterOfOptions.componentIds` | `combinator.type`, 4>>;
|
|
27
|
+
}
|
|
28
|
+
declare function updatePayModel$1(httpClient: HttpClient): UpdatePayModelSignature;
|
|
29
|
+
interface UpdatePayModelSignature {
|
|
30
|
+
/**
|
|
31
|
+
* Updates a pay model.
|
|
32
|
+
*
|
|
33
|
+
* Each time the pay model is updated, `revision` increments by 1.
|
|
34
|
+
* The current `revision` must be passed when updating the pay model.
|
|
35
|
+
* This ensures you're working with the latest pay model and prevents unintended overwrites.
|
|
36
|
+
*
|
|
37
|
+
* Updating `components` replaces the whole list. Send each existing component's `id` back, so personal rates and pay
|
|
38
|
+
* lines stay linked to it. Changes apply to staff pays calculated after the update, and the staff pays of the staff
|
|
39
|
+
* members paid with the pay model are marked stale.
|
|
40
|
+
*
|
|
41
|
+
* An archived pay model can't be updated.
|
|
42
|
+
* @param - Pay model ID.
|
|
43
|
+
* @returns Updated pay model.
|
|
44
|
+
*/
|
|
45
|
+
(_id: string, payModel: NonNullablePaths<UpdatePayModel, `revision`, 0>): Promise<NonNullablePaths<PayModel, `name` | `components` | `components.${number}.salaryOptions.amountPerPeriod` | `components.${number}.salaryOptions.prorateByDaysEmployed` | `components.${number}.hourlyOptions.rate` | `components.${number}.hourlyOptions.overtimeEligible` | `components.${number}.hourlyOptions.excludeSessionTime` | `components.${number}.flatPerSessionOptions.amount` | `components.${number}.flatPerSessionOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.includedAttendees` | `components.${number}.basePlusPerHeadOptions.amountPerAdditionalAttendee` | `components.${number}.basePlusPerHeadOptions.countBasis` | `components.${number}.basePlusPerHeadOptions.zeroWhenCancelled` | `components.${number}.basePlusPerHeadOptions.excludeFreeVisits` | `components.${number}.attendanceTiersOptions.countBasis` | `components.${number}.attendanceTiersOptions.zeroWhenCancelled` | `components.${number}.attendanceTiersOptions.excludeFreeVisits` | `components.${number}.serviceCommissionOptions.percent` | `components.${number}.serviceCommissionOptions.tierMode` | `components.${number}.serviceCommissionOptions.revenueRules.discountBasis` | `components.${number}.serviceCommissionOptions.revenueRules.taxBasis` | `components.${number}.productCommissionOptions.percent` | `components.${number}.name` | `components.${number}.type` | `combinator.greaterOfOptions.componentIds` | `combinator.type`, 4> & {
|
|
46
|
+
__applicationErrorsType?: UpdatePayModelApplicationErrors;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
declare function deletePayModel$1(httpClient: HttpClient): DeletePayModelSignature;
|
|
50
|
+
interface DeletePayModelSignature {
|
|
51
|
+
/**
|
|
52
|
+
* Deletes a pay model.
|
|
53
|
+
*
|
|
54
|
+
* A pay model that any pay terms use, past, current or upcoming, can't be deleted. Archive it instead, with Archive
|
|
55
|
+
* Pay Model.
|
|
56
|
+
* @param - ID of the pay model to delete.
|
|
57
|
+
*/
|
|
58
|
+
(payModelId: string): Promise<void & {
|
|
59
|
+
__applicationErrorsType?: DeletePayModelApplicationErrors;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
declare function archivePayModel$1(httpClient: HttpClient): ArchivePayModelSignature;
|
|
63
|
+
interface ArchivePayModelSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Archives a pay model. Sets `archivedDate`.
|
|
66
|
+
*
|
|
67
|
+
* Use it for a pay model that's no longer offered but that pay terms used, so it can't be deleted. Pay terms that use
|
|
68
|
+
* the pay model keep it, and it can still be retrieved. An archived pay model can't be updated.
|
|
69
|
+
*
|
|
70
|
+
* Archiving an archived pay model returns it unchanged.
|
|
71
|
+
* @param - ID of the pay model to archive.
|
|
72
|
+
*/
|
|
73
|
+
(payModelId: string): Promise<NonNullablePaths<ArchivePayModelResponse, `payModel.name` | `payModel.components` | `payModel.components.${number}.salaryOptions.amountPerPeriod` | `payModel.components.${number}.salaryOptions.prorateByDaysEmployed` | `payModel.components.${number}.hourlyOptions.rate` | `payModel.components.${number}.hourlyOptions.overtimeEligible` | `payModel.components.${number}.hourlyOptions.excludeSessionTime` | `payModel.components.${number}.flatPerSessionOptions.amount` | `payModel.components.${number}.flatPerSessionOptions.zeroWhenCancelled` | `payModel.components.${number}.basePlusPerHeadOptions.includedAttendees` | `payModel.components.${number}.basePlusPerHeadOptions.amountPerAdditionalAttendee` | `payModel.components.${number}.basePlusPerHeadOptions.countBasis` | `payModel.components.${number}.basePlusPerHeadOptions.zeroWhenCancelled` | `payModel.components.${number}.basePlusPerHeadOptions.excludeFreeVisits` | `payModel.components.${number}.attendanceTiersOptions.countBasis` | `payModel.components.${number}.attendanceTiersOptions.zeroWhenCancelled` | `payModel.components.${number}.attendanceTiersOptions.excludeFreeVisits` | `payModel.components.${number}.serviceCommissionOptions.percent` | `payModel.components.${number}.serviceCommissionOptions.tierMode` | `payModel.components.${number}.serviceCommissionOptions.revenueRules.discountBasis` | `payModel.components.${number}.serviceCommissionOptions.revenueRules.taxBasis` | `payModel.components.${number}.productCommissionOptions.percent` | `payModel.components.${number}.name` | `payModel.components.${number}.type` | `payModel.combinator.greaterOfOptions.componentIds` | `payModel.combinator.type`, 5>>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare function customQueryPayModels(httpClient: HttpClient): {
|
|
77
|
+
(): PayModelsQueryBuilder;
|
|
78
|
+
(query: PayModelQuery): ReturnType<typeof typedQueryPayModels>;
|
|
79
|
+
};
|
|
80
|
+
declare const createPayModel: MaybeContext<BuildRESTFunction<typeof createPayModel$1> & typeof createPayModel$1>;
|
|
81
|
+
declare const getPayModel: MaybeContext<BuildRESTFunction<typeof getPayModel$1> & typeof getPayModel$1>;
|
|
82
|
+
declare const updatePayModel: MaybeContext<BuildRESTFunction<typeof updatePayModel$1> & typeof updatePayModel$1>;
|
|
83
|
+
declare const deletePayModel: MaybeContext<BuildRESTFunction<typeof deletePayModel$1> & typeof deletePayModel$1>;
|
|
84
|
+
declare const archivePayModel: MaybeContext<BuildRESTFunction<typeof archivePayModel$1> & typeof archivePayModel$1>;
|
|
85
|
+
declare const queryPayModels: MaybeContext<BuildRESTFunction<typeof customQueryPayModels> & typeof customQueryPayModels>;
|
|
86
|
+
|
|
87
|
+
export { ArchivePayModelResponse, CreatePayModelApplicationErrors, DeletePayModelApplicationErrors, PayModel, PayModelQuery, PayModelsQueryBuilder, UpdatePayModel, UpdatePayModelApplicationErrors, archivePayModel, createPayModel, deletePayModel, getPayModel, queryPayModels, updatePayModel };
|
|
@@ -0,0 +1,597 @@
|
|
|
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
|
+
AttendeeCountBasis: () => AttendeeCountBasis,
|
|
24
|
+
CombinatorType: () => CombinatorType,
|
|
25
|
+
CommissionTierMode: () => CommissionTierMode,
|
|
26
|
+
ComponentType: () => ComponentType,
|
|
27
|
+
DiscountBasis: () => DiscountBasis,
|
|
28
|
+
SortOrder: () => SortOrder,
|
|
29
|
+
TaxBasis: () => TaxBasis,
|
|
30
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
31
|
+
archivePayModel: () => archivePayModel4,
|
|
32
|
+
createPayModel: () => createPayModel4,
|
|
33
|
+
deletePayModel: () => deletePayModel4,
|
|
34
|
+
getPayModel: () => getPayModel4,
|
|
35
|
+
queryPayModels: () => queryPayModels4,
|
|
36
|
+
updatePayModel: () => updatePayModel4,
|
|
37
|
+
utils: () => utils
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
|
+
|
|
41
|
+
// src/staff-pay-v1-pay-model-pay-models.universal.ts
|
|
42
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
43
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
44
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
45
|
+
|
|
46
|
+
// src/staff-pay-v1-pay-model-pay-models.http.ts
|
|
47
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
48
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
49
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
50
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
51
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
52
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
53
|
+
var TRANSFORM_PATHS_0 = [
|
|
54
|
+
{ path: "payModel.createdDate" },
|
|
55
|
+
{ path: "payModel.updatedDate" },
|
|
56
|
+
{ path: "payModel.archivedDate" }
|
|
57
|
+
];
|
|
58
|
+
var TRANSFORM_PATHS_1 = [{ path: "fieldMask" }];
|
|
59
|
+
var TRANSFORM_PATHS_2 = [
|
|
60
|
+
{ path: "payModels.createdDate" },
|
|
61
|
+
{ path: "payModels.updatedDate" },
|
|
62
|
+
{ path: "payModels.archivedDate" }
|
|
63
|
+
];
|
|
64
|
+
function resolveWixStaffPayV1PayModelsServiceUrl(opts) {
|
|
65
|
+
const domainToMappings = {
|
|
66
|
+
"manage._base_domain_": [
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/_api/pay-model",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
74
|
+
}
|
|
75
|
+
var PACKAGE_NAME = "@wix/auto_sdk_staff-pay_pay-models";
|
|
76
|
+
function createPayModel(payload) {
|
|
77
|
+
function __createPayModel({ host }) {
|
|
78
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
79
|
+
{
|
|
80
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
81
|
+
paths: TRANSFORM_PATHS_0
|
|
82
|
+
}
|
|
83
|
+
]);
|
|
84
|
+
const metadata = {
|
|
85
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
86
|
+
method: "POST",
|
|
87
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.CreatePayModel",
|
|
88
|
+
packageName: PACKAGE_NAME,
|
|
89
|
+
migrationOptions: {
|
|
90
|
+
optInTransformResponse: true
|
|
91
|
+
},
|
|
92
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
93
|
+
protoPath: "/v1/pay-models",
|
|
94
|
+
data: serializedData,
|
|
95
|
+
host
|
|
96
|
+
}),
|
|
97
|
+
data: serializedData,
|
|
98
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
99
|
+
{
|
|
100
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
101
|
+
paths: TRANSFORM_PATHS_0
|
|
102
|
+
}
|
|
103
|
+
])
|
|
104
|
+
};
|
|
105
|
+
return metadata;
|
|
106
|
+
}
|
|
107
|
+
return __createPayModel;
|
|
108
|
+
}
|
|
109
|
+
function getPayModel(payload) {
|
|
110
|
+
function __getPayModel({ host }) {
|
|
111
|
+
const metadata = {
|
|
112
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
113
|
+
method: "GET",
|
|
114
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.GetPayModel",
|
|
115
|
+
packageName: PACKAGE_NAME,
|
|
116
|
+
migrationOptions: {
|
|
117
|
+
optInTransformResponse: true
|
|
118
|
+
},
|
|
119
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
120
|
+
protoPath: "/v1/pay-models/{payModelId}",
|
|
121
|
+
data: payload,
|
|
122
|
+
host
|
|
123
|
+
}),
|
|
124
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
125
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
126
|
+
{
|
|
127
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
128
|
+
paths: TRANSFORM_PATHS_0
|
|
129
|
+
}
|
|
130
|
+
])
|
|
131
|
+
};
|
|
132
|
+
return metadata;
|
|
133
|
+
}
|
|
134
|
+
return __getPayModel;
|
|
135
|
+
}
|
|
136
|
+
function updatePayModel(payload) {
|
|
137
|
+
function __updatePayModel({ host }) {
|
|
138
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
139
|
+
{
|
|
140
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
141
|
+
paths: TRANSFORM_PATHS_1
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
145
|
+
paths: TRANSFORM_PATHS_0
|
|
146
|
+
}
|
|
147
|
+
]);
|
|
148
|
+
const metadata = {
|
|
149
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
150
|
+
method: "PATCH",
|
|
151
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.UpdatePayModel",
|
|
152
|
+
packageName: PACKAGE_NAME,
|
|
153
|
+
migrationOptions: {
|
|
154
|
+
optInTransformResponse: true
|
|
155
|
+
},
|
|
156
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
157
|
+
protoPath: "/v1/pay-models/{payModel.id}",
|
|
158
|
+
data: serializedData,
|
|
159
|
+
host
|
|
160
|
+
}),
|
|
161
|
+
data: serializedData,
|
|
162
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
163
|
+
{
|
|
164
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
165
|
+
paths: TRANSFORM_PATHS_0
|
|
166
|
+
}
|
|
167
|
+
])
|
|
168
|
+
};
|
|
169
|
+
return metadata;
|
|
170
|
+
}
|
|
171
|
+
return __updatePayModel;
|
|
172
|
+
}
|
|
173
|
+
function deletePayModel(payload) {
|
|
174
|
+
function __deletePayModel({ host }) {
|
|
175
|
+
const metadata = {
|
|
176
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
177
|
+
method: "DELETE",
|
|
178
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.DeletePayModel",
|
|
179
|
+
packageName: PACKAGE_NAME,
|
|
180
|
+
migrationOptions: {
|
|
181
|
+
optInTransformResponse: true
|
|
182
|
+
},
|
|
183
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
184
|
+
protoPath: "/v1/pay-models/{payModelId}",
|
|
185
|
+
data: payload,
|
|
186
|
+
host
|
|
187
|
+
}),
|
|
188
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
189
|
+
};
|
|
190
|
+
return metadata;
|
|
191
|
+
}
|
|
192
|
+
return __deletePayModel;
|
|
193
|
+
}
|
|
194
|
+
function queryPayModels(payload) {
|
|
195
|
+
function __queryPayModels({ host }) {
|
|
196
|
+
const metadata = {
|
|
197
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
198
|
+
method: "GET",
|
|
199
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.QueryPayModels",
|
|
200
|
+
packageName: PACKAGE_NAME,
|
|
201
|
+
migrationOptions: {
|
|
202
|
+
optInTransformResponse: true
|
|
203
|
+
},
|
|
204
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
205
|
+
protoPath: "/v1/pay-models/query",
|
|
206
|
+
data: payload,
|
|
207
|
+
host
|
|
208
|
+
}),
|
|
209
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
210
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
211
|
+
{
|
|
212
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
213
|
+
paths: TRANSFORM_PATHS_2
|
|
214
|
+
}
|
|
215
|
+
]),
|
|
216
|
+
fallback: [
|
|
217
|
+
{
|
|
218
|
+
method: "POST",
|
|
219
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
220
|
+
protoPath: "/v1/pay-models/query",
|
|
221
|
+
data: payload,
|
|
222
|
+
host
|
|
223
|
+
}),
|
|
224
|
+
data: payload
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
};
|
|
228
|
+
return metadata;
|
|
229
|
+
}
|
|
230
|
+
return __queryPayModels;
|
|
231
|
+
}
|
|
232
|
+
function archivePayModel(payload) {
|
|
233
|
+
function __archivePayModel({ host }) {
|
|
234
|
+
const metadata = {
|
|
235
|
+
entityFqdn: "wix.staff.pay.v1.pay_model",
|
|
236
|
+
method: "POST",
|
|
237
|
+
methodFqn: "wix.staff.pay.v1.PayModelsService.ArchivePayModel",
|
|
238
|
+
packageName: PACKAGE_NAME,
|
|
239
|
+
migrationOptions: {
|
|
240
|
+
optInTransformResponse: true
|
|
241
|
+
},
|
|
242
|
+
url: resolveWixStaffPayV1PayModelsServiceUrl({
|
|
243
|
+
protoPath: "/v1/pay-models/{payModelId}/archive",
|
|
244
|
+
data: payload,
|
|
245
|
+
host
|
|
246
|
+
}),
|
|
247
|
+
data: payload,
|
|
248
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
249
|
+
{
|
|
250
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
251
|
+
paths: TRANSFORM_PATHS_0
|
|
252
|
+
}
|
|
253
|
+
])
|
|
254
|
+
};
|
|
255
|
+
return metadata;
|
|
256
|
+
}
|
|
257
|
+
return __archivePayModel;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// src/staff-pay-v1-pay-model-pay-models.universal.ts
|
|
261
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
262
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
263
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
|
264
|
+
ComponentType2["SALARY"] = "SALARY";
|
|
265
|
+
ComponentType2["HOURLY"] = "HOURLY";
|
|
266
|
+
ComponentType2["FLAT_PER_SESSION"] = "FLAT_PER_SESSION";
|
|
267
|
+
ComponentType2["BASE_PLUS_PER_HEAD"] = "BASE_PLUS_PER_HEAD";
|
|
268
|
+
ComponentType2["ATTENDANCE_TIERS"] = "ATTENDANCE_TIERS";
|
|
269
|
+
ComponentType2["SERVICE_COMMISSION"] = "SERVICE_COMMISSION";
|
|
270
|
+
ComponentType2["TIPS"] = "TIPS";
|
|
271
|
+
ComponentType2["PRODUCT_COMMISSION"] = "PRODUCT_COMMISSION";
|
|
272
|
+
ComponentType2["PLAN_SALE_COMMISSION"] = "PLAN_SALE_COMMISSION";
|
|
273
|
+
ComponentType2["PER_COURSE"] = "PER_COURSE";
|
|
274
|
+
return ComponentType2;
|
|
275
|
+
})(ComponentType || {});
|
|
276
|
+
var AttendeeCountBasis = /* @__PURE__ */ ((AttendeeCountBasis2) => {
|
|
277
|
+
AttendeeCountBasis2["BOOKED"] = "BOOKED";
|
|
278
|
+
AttendeeCountBasis2["CHECKED_IN"] = "CHECKED_IN";
|
|
279
|
+
AttendeeCountBasis2["CHECKED_IN_AND_NO_SHOWS"] = "CHECKED_IN_AND_NO_SHOWS";
|
|
280
|
+
return AttendeeCountBasis2;
|
|
281
|
+
})(AttendeeCountBasis || {});
|
|
282
|
+
var CommissionTierMode = /* @__PURE__ */ ((CommissionTierMode2) => {
|
|
283
|
+
CommissionTierMode2["ENTIRE_AMOUNT"] = "ENTIRE_AMOUNT";
|
|
284
|
+
CommissionTierMode2["PORTION_IN_TIER"] = "PORTION_IN_TIER";
|
|
285
|
+
return CommissionTierMode2;
|
|
286
|
+
})(CommissionTierMode || {});
|
|
287
|
+
var DiscountBasis = /* @__PURE__ */ ((DiscountBasis2) => {
|
|
288
|
+
DiscountBasis2["BEFORE_DISCOUNTS"] = "BEFORE_DISCOUNTS";
|
|
289
|
+
DiscountBasis2["AFTER_DISCOUNTS"] = "AFTER_DISCOUNTS";
|
|
290
|
+
return DiscountBasis2;
|
|
291
|
+
})(DiscountBasis || {});
|
|
292
|
+
var TaxBasis = /* @__PURE__ */ ((TaxBasis2) => {
|
|
293
|
+
TaxBasis2["BEFORE_TAX"] = "BEFORE_TAX";
|
|
294
|
+
TaxBasis2["WITH_TAX"] = "WITH_TAX";
|
|
295
|
+
return TaxBasis2;
|
|
296
|
+
})(TaxBasis || {});
|
|
297
|
+
var CombinatorType = /* @__PURE__ */ ((CombinatorType2) => {
|
|
298
|
+
CombinatorType2["SUM"] = "SUM";
|
|
299
|
+
CombinatorType2["GREATER_OF"] = "GREATER_OF";
|
|
300
|
+
return CombinatorType2;
|
|
301
|
+
})(CombinatorType || {});
|
|
302
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
303
|
+
SortOrder2["ASC"] = "ASC";
|
|
304
|
+
SortOrder2["DESC"] = "DESC";
|
|
305
|
+
return SortOrder2;
|
|
306
|
+
})(SortOrder || {});
|
|
307
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
308
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
309
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
310
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
311
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
312
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
313
|
+
return WebhookIdentityType2;
|
|
314
|
+
})(WebhookIdentityType || {});
|
|
315
|
+
async function createPayModel2(payModel) {
|
|
316
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
317
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ payModel });
|
|
318
|
+
const reqOpts = createPayModel(payload);
|
|
319
|
+
sideEffects?.onSiteCall?.();
|
|
320
|
+
try {
|
|
321
|
+
const result = await httpClient.request(reqOpts);
|
|
322
|
+
sideEffects?.onSuccess?.(result);
|
|
323
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.payModel;
|
|
324
|
+
} catch (err) {
|
|
325
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
326
|
+
err,
|
|
327
|
+
{
|
|
328
|
+
spreadPathsToArguments: {},
|
|
329
|
+
explicitPathsToArguments: { payModel: "$[0]" },
|
|
330
|
+
singleArgumentUnchanged: false
|
|
331
|
+
},
|
|
332
|
+
["payModel"]
|
|
333
|
+
);
|
|
334
|
+
sideEffects?.onError?.(err);
|
|
335
|
+
throw transformedError;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
async function getPayModel2(payModelId) {
|
|
339
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
340
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
341
|
+
payModelId
|
|
342
|
+
});
|
|
343
|
+
const reqOpts = getPayModel(payload);
|
|
344
|
+
sideEffects?.onSiteCall?.();
|
|
345
|
+
try {
|
|
346
|
+
const result = await httpClient.request(reqOpts);
|
|
347
|
+
sideEffects?.onSuccess?.(result);
|
|
348
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.payModel;
|
|
349
|
+
} catch (err) {
|
|
350
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
351
|
+
err,
|
|
352
|
+
{
|
|
353
|
+
spreadPathsToArguments: {},
|
|
354
|
+
explicitPathsToArguments: { payModelId: "$[0]" },
|
|
355
|
+
singleArgumentUnchanged: false
|
|
356
|
+
},
|
|
357
|
+
["payModelId"]
|
|
358
|
+
);
|
|
359
|
+
sideEffects?.onError?.(err);
|
|
360
|
+
throw transformedError;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
async function updatePayModel2(_id, payModel) {
|
|
364
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
365
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
366
|
+
payModel: { ...payModel, id: _id }
|
|
367
|
+
});
|
|
368
|
+
const reqOpts = updatePayModel(payload);
|
|
369
|
+
sideEffects?.onSiteCall?.();
|
|
370
|
+
try {
|
|
371
|
+
const result = await httpClient.request(reqOpts);
|
|
372
|
+
sideEffects?.onSuccess?.(result);
|
|
373
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.payModel;
|
|
374
|
+
} catch (err) {
|
|
375
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
376
|
+
err,
|
|
377
|
+
{
|
|
378
|
+
spreadPathsToArguments: { payModel: "$[1]" },
|
|
379
|
+
explicitPathsToArguments: { "payModel.id": "$[0]" },
|
|
380
|
+
singleArgumentUnchanged: false
|
|
381
|
+
},
|
|
382
|
+
["_id", "payModel"]
|
|
383
|
+
);
|
|
384
|
+
sideEffects?.onError?.(err);
|
|
385
|
+
throw transformedError;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
async function deletePayModel2(payModelId) {
|
|
389
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
390
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
391
|
+
payModelId
|
|
392
|
+
});
|
|
393
|
+
const reqOpts = deletePayModel(payload);
|
|
394
|
+
sideEffects?.onSiteCall?.();
|
|
395
|
+
try {
|
|
396
|
+
const result = await httpClient.request(reqOpts);
|
|
397
|
+
sideEffects?.onSuccess?.(result);
|
|
398
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
399
|
+
} catch (err) {
|
|
400
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
401
|
+
err,
|
|
402
|
+
{
|
|
403
|
+
spreadPathsToArguments: {},
|
|
404
|
+
explicitPathsToArguments: { payModelId: "$[0]" },
|
|
405
|
+
singleArgumentUnchanged: false
|
|
406
|
+
},
|
|
407
|
+
["payModelId"]
|
|
408
|
+
);
|
|
409
|
+
sideEffects?.onError?.(err);
|
|
410
|
+
throw transformedError;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function queryPayModels2() {
|
|
414
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
415
|
+
return (0, import_query_builder.queryBuilder)({
|
|
416
|
+
func: async (payload) => {
|
|
417
|
+
const reqOpts = queryPayModels(payload);
|
|
418
|
+
sideEffects?.onSiteCall?.();
|
|
419
|
+
try {
|
|
420
|
+
const result = await httpClient.request(reqOpts);
|
|
421
|
+
sideEffects?.onSuccess?.(result);
|
|
422
|
+
return result;
|
|
423
|
+
} catch (err) {
|
|
424
|
+
sideEffects?.onError?.(err);
|
|
425
|
+
throw err;
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
requestTransformer: (query) => {
|
|
429
|
+
const args = [query, {}];
|
|
430
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
431
|
+
...args?.[1],
|
|
432
|
+
query: args?.[0]
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
responseTransformer: ({ data }) => {
|
|
436
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
437
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
438
|
+
);
|
|
439
|
+
return {
|
|
440
|
+
items: transformedData?.payModels,
|
|
441
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
442
|
+
};
|
|
443
|
+
},
|
|
444
|
+
errorTransformer: (err) => {
|
|
445
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
446
|
+
spreadPathsToArguments: {},
|
|
447
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
448
|
+
singleArgumentUnchanged: false
|
|
449
|
+
});
|
|
450
|
+
throw transformedError;
|
|
451
|
+
},
|
|
452
|
+
pagingMethod: "CURSOR",
|
|
453
|
+
transformationPaths: {}
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
async function typedQueryPayModels(query) {
|
|
457
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
458
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
459
|
+
const reqOpts = queryPayModels(payload);
|
|
460
|
+
sideEffects?.onSiteCall?.();
|
|
461
|
+
try {
|
|
462
|
+
const result = await httpClient.request(reqOpts);
|
|
463
|
+
sideEffects?.onSuccess?.(result);
|
|
464
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
465
|
+
} catch (err) {
|
|
466
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
467
|
+
err,
|
|
468
|
+
{
|
|
469
|
+
spreadPathsToArguments: {},
|
|
470
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
471
|
+
singleArgumentUnchanged: false
|
|
472
|
+
},
|
|
473
|
+
["query"]
|
|
474
|
+
);
|
|
475
|
+
sideEffects?.onError?.(err);
|
|
476
|
+
throw transformedError;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
var utils = {
|
|
480
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
481
|
+
};
|
|
482
|
+
async function archivePayModel2(payModelId) {
|
|
483
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
484
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
485
|
+
payModelId
|
|
486
|
+
});
|
|
487
|
+
const reqOpts = archivePayModel(payload);
|
|
488
|
+
sideEffects?.onSiteCall?.();
|
|
489
|
+
try {
|
|
490
|
+
const result = await httpClient.request(reqOpts);
|
|
491
|
+
sideEffects?.onSuccess?.(result);
|
|
492
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
493
|
+
} catch (err) {
|
|
494
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
495
|
+
err,
|
|
496
|
+
{
|
|
497
|
+
spreadPathsToArguments: {},
|
|
498
|
+
explicitPathsToArguments: { payModelId: "$[0]" },
|
|
499
|
+
singleArgumentUnchanged: false
|
|
500
|
+
},
|
|
501
|
+
["payModelId"]
|
|
502
|
+
);
|
|
503
|
+
sideEffects?.onError?.(err);
|
|
504
|
+
throw transformedError;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// src/staff-pay-v1-pay-model-pay-models.public.ts
|
|
509
|
+
function createPayModel3(httpClient) {
|
|
510
|
+
return (payModel) => createPayModel2(
|
|
511
|
+
payModel,
|
|
512
|
+
// @ts-ignore
|
|
513
|
+
{ httpClient }
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
function getPayModel3(httpClient) {
|
|
517
|
+
return (payModelId) => getPayModel2(
|
|
518
|
+
payModelId,
|
|
519
|
+
// @ts-ignore
|
|
520
|
+
{ httpClient }
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
function updatePayModel3(httpClient) {
|
|
524
|
+
return (_id, payModel) => updatePayModel2(
|
|
525
|
+
_id,
|
|
526
|
+
payModel,
|
|
527
|
+
// @ts-ignore
|
|
528
|
+
{ httpClient }
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
function deletePayModel3(httpClient) {
|
|
532
|
+
return (payModelId) => deletePayModel2(
|
|
533
|
+
payModelId,
|
|
534
|
+
// @ts-ignore
|
|
535
|
+
{ httpClient }
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
function queryPayModels3(httpClient) {
|
|
539
|
+
return () => queryPayModels2(
|
|
540
|
+
// @ts-ignore
|
|
541
|
+
{ httpClient }
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
function typedQueryPayModels2(httpClient) {
|
|
545
|
+
return (query) => typedQueryPayModels(
|
|
546
|
+
query,
|
|
547
|
+
// @ts-ignore
|
|
548
|
+
{ httpClient }
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
function archivePayModel3(httpClient) {
|
|
552
|
+
return (payModelId) => archivePayModel2(
|
|
553
|
+
payModelId,
|
|
554
|
+
// @ts-ignore
|
|
555
|
+
{ httpClient }
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// src/staff-pay-v1-pay-model-pay-models.context.ts
|
|
560
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
561
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
562
|
+
function customQueryPayModels(httpClient) {
|
|
563
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
564
|
+
builderQueryFunction: () => queryPayModels3(httpClient)(),
|
|
565
|
+
typedQueryFunction: (query) => typedQueryPayModels2(httpClient)(query),
|
|
566
|
+
hasOptionsParameter: false
|
|
567
|
+
});
|
|
568
|
+
function overloadedQuery(query) {
|
|
569
|
+
return router(...arguments);
|
|
570
|
+
}
|
|
571
|
+
return overloadedQuery;
|
|
572
|
+
}
|
|
573
|
+
var createPayModel4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPayModel3);
|
|
574
|
+
var getPayModel4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPayModel3);
|
|
575
|
+
var updatePayModel4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePayModel3);
|
|
576
|
+
var deletePayModel4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePayModel3);
|
|
577
|
+
var archivePayModel4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(archivePayModel3);
|
|
578
|
+
var queryPayModels4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPayModels);
|
|
579
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
580
|
+
0 && (module.exports = {
|
|
581
|
+
AttendeeCountBasis,
|
|
582
|
+
CombinatorType,
|
|
583
|
+
CommissionTierMode,
|
|
584
|
+
ComponentType,
|
|
585
|
+
DiscountBasis,
|
|
586
|
+
SortOrder,
|
|
587
|
+
TaxBasis,
|
|
588
|
+
WebhookIdentityType,
|
|
589
|
+
archivePayModel,
|
|
590
|
+
createPayModel,
|
|
591
|
+
deletePayModel,
|
|
592
|
+
getPayModel,
|
|
593
|
+
queryPayModels,
|
|
594
|
+
updatePayModel,
|
|
595
|
+
utils
|
|
596
|
+
});
|
|
597
|
+
//# sourceMappingURL=index.js.map
|