@wix/auto_sdk_app-management_apps 1.0.5 → 1.0.6
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 +11 -30
- package/build/cjs/index.js +0 -131
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -49
- package/build/cjs/index.typings.js +0 -113
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -18
- package/build/cjs/meta.js +0 -95
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -30
- package/build/es/index.mjs +0 -129
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -49
- package/build/es/index.typings.mjs +0 -111
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -18
- package/build/es/meta.mjs +0 -93
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -30
- package/build/internal/cjs/index.typings.d.ts +38 -50
- package/build/internal/cjs/meta.d.ts +24 -19
- package/build/internal/es/index.d.mts +11 -30
- package/build/internal/es/index.typings.d.mts +38 -50
- package/build/internal/es/meta.d.mts +24 -19
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -18,7 +18,6 @@ var TRANSFORM_PATHS_0 = [
|
|
|
18
18
|
{ path: "app.appSecrets.previousSecretRevokeDate" }
|
|
19
19
|
];
|
|
20
20
|
var TRANSFORM_PATHS_1 = [{ path: "mask" }];
|
|
21
|
-
var TRANSFORM_PATHS_2 = [{ path: "previousSecretRevokeAt" }];
|
|
22
21
|
function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
|
|
23
22
|
const domainToMappings = {
|
|
24
23
|
"editor._base_domain_": [
|
|
@@ -306,60 +305,6 @@ function setNamespace(payload) {
|
|
|
306
305
|
}
|
|
307
306
|
return __setNamespace;
|
|
308
307
|
}
|
|
309
|
-
function createSecondarySecret(payload) {
|
|
310
|
-
function __createSecondarySecret({ host }) {
|
|
311
|
-
const metadata = {
|
|
312
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
313
|
-
method: "POST",
|
|
314
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.CreateSecondarySecret",
|
|
315
|
-
packageName: PACKAGE_NAME,
|
|
316
|
-
migrationOptions: {
|
|
317
|
-
optInTransformResponse: true
|
|
318
|
-
},
|
|
319
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
320
|
-
protoPath: "/v1/apps/{appId}/secrets/secondary",
|
|
321
|
-
data: payload,
|
|
322
|
-
host
|
|
323
|
-
}),
|
|
324
|
-
data: payload,
|
|
325
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
326
|
-
{
|
|
327
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
328
|
-
paths: TRANSFORM_PATHS_0
|
|
329
|
-
}
|
|
330
|
-
])
|
|
331
|
-
};
|
|
332
|
-
return metadata;
|
|
333
|
-
}
|
|
334
|
-
return __createSecondarySecret;
|
|
335
|
-
}
|
|
336
|
-
function revokeSecret(payload) {
|
|
337
|
-
function __revokeSecret({ host }) {
|
|
338
|
-
const metadata = {
|
|
339
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
340
|
-
method: "POST",
|
|
341
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.RevokeSecret",
|
|
342
|
-
packageName: PACKAGE_NAME,
|
|
343
|
-
migrationOptions: {
|
|
344
|
-
optInTransformResponse: true
|
|
345
|
-
},
|
|
346
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
347
|
-
protoPath: "/v1/apps/{appId}/secrets/revoke",
|
|
348
|
-
data: payload,
|
|
349
|
-
host
|
|
350
|
-
}),
|
|
351
|
-
data: payload,
|
|
352
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
353
|
-
{
|
|
354
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
355
|
-
paths: TRANSFORM_PATHS_2
|
|
356
|
-
}
|
|
357
|
-
])
|
|
358
|
-
};
|
|
359
|
-
return metadata;
|
|
360
|
-
}
|
|
361
|
-
return __revokeSecret;
|
|
362
|
-
}
|
|
363
308
|
|
|
364
309
|
// src/devcenter-apps-v1-app-apps.universal.ts
|
|
365
310
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -508,7 +453,6 @@ async function getApp2(appId, options) {
|
|
|
508
453
|
const { httpClient, sideEffects } = arguments[2];
|
|
509
454
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
510
455
|
appId,
|
|
511
|
-
consistent: options?.consistent,
|
|
512
456
|
additionalFields: options?.additionalFields
|
|
513
457
|
});
|
|
514
458
|
const reqOpts = getApp(payload);
|
|
@@ -524,7 +468,6 @@ async function getApp2(appId, options) {
|
|
|
524
468
|
spreadPathsToArguments: {},
|
|
525
469
|
explicitPathsToArguments: {
|
|
526
470
|
appId: "$[0]",
|
|
527
|
-
consistent: "$[1].consistent",
|
|
528
471
|
additionalFields: "$[1].additionalFields"
|
|
529
472
|
},
|
|
530
473
|
singleArgumentUnchanged: false
|
|
@@ -666,58 +609,6 @@ async function setNamespace2(appId, appName, options) {
|
|
|
666
609
|
throw transformedError;
|
|
667
610
|
}
|
|
668
611
|
}
|
|
669
|
-
async function createSecondarySecret2(appId, options) {
|
|
670
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
671
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
672
|
-
appId,
|
|
673
|
-
revision: options?.revision
|
|
674
|
-
});
|
|
675
|
-
const reqOpts = createSecondarySecret(payload);
|
|
676
|
-
sideEffects?.onSiteCall?.();
|
|
677
|
-
try {
|
|
678
|
-
const result = await httpClient.request(reqOpts);
|
|
679
|
-
sideEffects?.onSuccess?.(result);
|
|
680
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
681
|
-
} catch (err) {
|
|
682
|
-
const transformedError = sdkTransformError(
|
|
683
|
-
err,
|
|
684
|
-
{
|
|
685
|
-
spreadPathsToArguments: {},
|
|
686
|
-
explicitPathsToArguments: { appId: "$[0]", revision: "$[1].revision" },
|
|
687
|
-
singleArgumentUnchanged: false
|
|
688
|
-
},
|
|
689
|
-
["appId", "options"]
|
|
690
|
-
);
|
|
691
|
-
sideEffects?.onError?.(err);
|
|
692
|
-
throw transformedError;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
async function revokeSecret2(appId, secretToRevoke) {
|
|
696
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
697
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
698
|
-
appId,
|
|
699
|
-
secretToRevoke
|
|
700
|
-
});
|
|
701
|
-
const reqOpts = revokeSecret(payload);
|
|
702
|
-
sideEffects?.onSiteCall?.();
|
|
703
|
-
try {
|
|
704
|
-
const result = await httpClient.request(reqOpts);
|
|
705
|
-
sideEffects?.onSuccess?.(result);
|
|
706
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
707
|
-
} catch (err) {
|
|
708
|
-
const transformedError = sdkTransformError(
|
|
709
|
-
err,
|
|
710
|
-
{
|
|
711
|
-
spreadPathsToArguments: {},
|
|
712
|
-
explicitPathsToArguments: { appId: "$[0]", secretToRevoke: "$[1]" },
|
|
713
|
-
singleArgumentUnchanged: false
|
|
714
|
-
},
|
|
715
|
-
["appId", "secretToRevoke"]
|
|
716
|
-
);
|
|
717
|
-
sideEffects?.onError?.(err);
|
|
718
|
-
throw transformedError;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
612
|
|
|
722
613
|
// src/devcenter-apps-v1-app-apps.public.ts
|
|
723
614
|
function createApp3(httpClient) {
|
|
@@ -775,22 +666,6 @@ function setNamespace3(httpClient) {
|
|
|
775
666
|
{ httpClient }
|
|
776
667
|
);
|
|
777
668
|
}
|
|
778
|
-
function createSecondarySecret3(httpClient) {
|
|
779
|
-
return (appId, options) => createSecondarySecret2(
|
|
780
|
-
appId,
|
|
781
|
-
options,
|
|
782
|
-
// @ts-ignore
|
|
783
|
-
{ httpClient }
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
function revokeSecret3(httpClient) {
|
|
787
|
-
return (appId, secretToRevoke) => revokeSecret2(
|
|
788
|
-
appId,
|
|
789
|
-
secretToRevoke,
|
|
790
|
-
// @ts-ignore
|
|
791
|
-
{ httpClient }
|
|
792
|
-
);
|
|
793
|
-
}
|
|
794
669
|
|
|
795
670
|
// src/devcenter-apps-v1-app-apps.context.ts
|
|
796
671
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -801,8 +676,6 @@ var generateSlug4 = /* @__PURE__ */ createRESTModule(generateSlug3);
|
|
|
801
676
|
var getNamespaceSuggestion4 = /* @__PURE__ */ createRESTModule(getNamespaceSuggestion3);
|
|
802
677
|
var getNamespaceSuggestionByName4 = /* @__PURE__ */ createRESTModule(getNamespaceSuggestionByName3);
|
|
803
678
|
var setNamespace4 = /* @__PURE__ */ createRESTModule(setNamespace3);
|
|
804
|
-
var createSecondarySecret4 = /* @__PURE__ */ createRESTModule(createSecondarySecret3);
|
|
805
|
-
var revokeSecret4 = /* @__PURE__ */ createRESTModule(revokeSecret3);
|
|
806
679
|
export {
|
|
807
680
|
Action,
|
|
808
681
|
AppType,
|
|
@@ -823,12 +696,10 @@ export {
|
|
|
823
696
|
VersionStatus,
|
|
824
697
|
WebhookIdentityType,
|
|
825
698
|
createApp4 as createApp,
|
|
826
|
-
createSecondarySecret4 as createSecondarySecret,
|
|
827
699
|
generateSlug4 as generateSlug,
|
|
828
700
|
getApp4 as getApp,
|
|
829
701
|
getNamespaceSuggestion4 as getNamespaceSuggestion,
|
|
830
702
|
getNamespaceSuggestionByName4 as getNamespaceSuggestionByName,
|
|
831
|
-
revokeSecret4 as revokeSecret,
|
|
832
703
|
setNamespace4 as setNamespace,
|
|
833
704
|
updateApp4 as updateApp
|
|
834
705
|
};
|