@wix/auto_sdk_staff-pay_pay-models 1.0.0 → 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.
@@ -219,54 +219,6 @@ function archivePayModel(payload) {
219
219
  }
220
220
  return __archivePayModel;
221
221
  }
222
- function unarchivePayModel(payload) {
223
- function __unarchivePayModel({ host }) {
224
- const metadata = {
225
- entityFqdn: "wix.staff.pay.v1.pay_model",
226
- method: "POST",
227
- methodFqn: "wix.staff.pay.v1.PayModelsService.UnarchivePayModel",
228
- packageName: PACKAGE_NAME,
229
- migrationOptions: {
230
- optInTransformResponse: true
231
- },
232
- url: resolveWixStaffPayV1PayModelsServiceUrl({
233
- protoPath: "/v1/pay-models/{payModelId}/unarchive",
234
- data: payload,
235
- host
236
- }),
237
- data: payload,
238
- transformResponse: (payload2) => transformPaths(payload2, [
239
- {
240
- transformFn: transformRESTTimestampToSDKTimestamp,
241
- paths: TRANSFORM_PATHS_0
242
- }
243
- ])
244
- };
245
- return metadata;
246
- }
247
- return __unarchivePayModel;
248
- }
249
- function bulkDeletePayModels(payload) {
250
- function __bulkDeletePayModels({ host }) {
251
- const metadata = {
252
- entityFqdn: "wix.staff.pay.v1.pay_model",
253
- method: "POST",
254
- methodFqn: "wix.staff.pay.v1.PayModelsService.BulkDeletePayModels",
255
- packageName: PACKAGE_NAME,
256
- migrationOptions: {
257
- optInTransformResponse: true
258
- },
259
- url: resolveWixStaffPayV1PayModelsServiceUrl({
260
- protoPath: "/v1/bulk/pay-models/delete",
261
- data: payload,
262
- host
263
- }),
264
- data: payload
265
- };
266
- return metadata;
267
- }
268
- return __bulkDeletePayModels;
269
- }
270
222
 
271
223
  // src/staff-pay-v1-pay-model-pay-models.universal.ts
272
224
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
@@ -515,56 +467,6 @@ async function archivePayModel2(payModelId) {
515
467
  throw transformedError;
516
468
  }
517
469
  }
518
- async function unarchivePayModel2(payModelId) {
519
- const { httpClient, sideEffects } = arguments[1];
520
- const payload = renameKeysFromSDKRequestToRESTRequest({
521
- payModelId
522
- });
523
- const reqOpts = unarchivePayModel(payload);
524
- sideEffects?.onSiteCall?.();
525
- try {
526
- const result = await httpClient.request(reqOpts);
527
- sideEffects?.onSuccess?.(result);
528
- return renameKeysFromRESTResponseToSDKResponse(result.data);
529
- } catch (err) {
530
- const transformedError = sdkTransformError(
531
- err,
532
- {
533
- spreadPathsToArguments: {},
534
- explicitPathsToArguments: { payModelId: "$[0]" },
535
- singleArgumentUnchanged: false
536
- },
537
- ["payModelId"]
538
- );
539
- sideEffects?.onError?.(err);
540
- throw transformedError;
541
- }
542
- }
543
- async function bulkDeletePayModels2(payModelIds) {
544
- const { httpClient, sideEffects } = arguments[1];
545
- const payload = renameKeysFromSDKRequestToRESTRequest({
546
- payModelIds
547
- });
548
- const reqOpts = bulkDeletePayModels(payload);
549
- sideEffects?.onSiteCall?.();
550
- try {
551
- const result = await httpClient.request(reqOpts);
552
- sideEffects?.onSuccess?.(result);
553
- return renameKeysFromRESTResponseToSDKResponse(result.data);
554
- } catch (err) {
555
- const transformedError = sdkTransformError(
556
- err,
557
- {
558
- spreadPathsToArguments: {},
559
- explicitPathsToArguments: { payModelIds: "$[0]" },
560
- singleArgumentUnchanged: false
561
- },
562
- ["payModelIds"]
563
- );
564
- sideEffects?.onError?.(err);
565
- throw transformedError;
566
- }
567
- }
568
470
 
569
471
  // src/staff-pay-v1-pay-model-pay-models.public.ts
570
472
  function createPayModel3(httpClient) {
@@ -616,20 +518,6 @@ function archivePayModel3(httpClient) {
616
518
  { httpClient }
617
519
  );
618
520
  }
619
- function unarchivePayModel3(httpClient) {
620
- return (payModelId) => unarchivePayModel2(
621
- payModelId,
622
- // @ts-ignore
623
- { httpClient }
624
- );
625
- }
626
- function bulkDeletePayModels3(httpClient) {
627
- return (payModelIds) => bulkDeletePayModels2(
628
- payModelIds,
629
- // @ts-ignore
630
- { httpClient }
631
- );
632
- }
633
521
 
634
522
  // src/staff-pay-v1-pay-model-pay-models.context.ts
635
523
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
@@ -650,8 +538,6 @@ var getPayModel4 = /* @__PURE__ */ createRESTModule(getPayModel3);
650
538
  var updatePayModel4 = /* @__PURE__ */ createRESTModule(updatePayModel3);
651
539
  var deletePayModel4 = /* @__PURE__ */ createRESTModule(deletePayModel3);
652
540
  var archivePayModel4 = /* @__PURE__ */ createRESTModule(archivePayModel3);
653
- var unarchivePayModel4 = /* @__PURE__ */ createRESTModule(unarchivePayModel3);
654
- var bulkDeletePayModels4 = /* @__PURE__ */ createRESTModule(bulkDeletePayModels3);
655
541
  var queryPayModels4 = /* @__PURE__ */ createRESTModule(customQueryPayModels);
656
542
  export {
657
543
  AttendeeCountBasis,
@@ -663,12 +549,10 @@ export {
663
549
  TaxBasis,
664
550
  WebhookIdentityType,
665
551
  archivePayModel4 as archivePayModel,
666
- bulkDeletePayModels4 as bulkDeletePayModels,
667
552
  createPayModel4 as createPayModel,
668
553
  deletePayModel4 as deletePayModel,
669
554
  getPayModel4 as getPayModel,
670
555
  queryPayModels4 as queryPayModels,
671
- unarchivePayModel4 as unarchivePayModel,
672
556
  updatePayModel4 as updatePayModel,
673
557
  utils
674
558
  };