@wix/auto_sdk_app-management_app-instances 1.0.19 → 1.0.21

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.
Files changed (121) hide show
  1. package/build/cjs/{src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.ts} +83 -35
  2. package/build/cjs/index.d.ts +65 -1
  3. package/build/cjs/index.js +343 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +243 -1
  6. package/build/cjs/meta.js +145 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → es/devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.mts} +83 -35
  9. package/build/es/index.d.mts +65 -0
  10. package/build/es/index.mjs +308 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/meta.d.mts +243 -0
  13. package/build/es/meta.mjs +121 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/{es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → internal/cjs/devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.ts} +83 -35
  16. package/build/internal/cjs/index.d.ts +65 -1
  17. package/build/internal/cjs/index.js +343 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +243 -1
  20. package/build/internal/cjs/meta.js +145 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/{src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.mts} +83 -35
  23. package/build/internal/es/index.d.mts +65 -0
  24. package/build/internal/es/index.mjs +308 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/es/meta.d.mts +243 -0
  27. package/build/internal/es/meta.mjs +121 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
  34. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -57
  35. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
  36. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
  37. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -112
  38. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
  39. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
  40. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -47
  41. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
  42. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
  43. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -70
  44. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
  45. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -56
  46. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
  47. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
  48. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -123
  49. package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
  60. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -48
  61. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
  62. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
  63. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -108
  64. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
  65. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
  66. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -20
  67. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
  68. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
  69. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -60
  70. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
  71. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -53
  72. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
  73. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
  74. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -96
  75. package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
  80. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -57
  81. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
  82. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
  83. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -112
  84. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
  85. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
  86. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -47
  87. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
  88. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
  89. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -70
  90. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
  91. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -56
  92. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
  93. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
  94. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -123
  95. package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
  106. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -48
  107. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
  108. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
  109. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -108
  110. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
  111. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
  112. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -20
  113. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
  114. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
  115. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -60
  116. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
  117. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -53
  118. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
  119. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
  120. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -96
  121. package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
@@ -1,123 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getAppInstance = exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.FreeTrialPeriod = exports.FreeTrialStatus = exports.PaymentCycle = void 0;
27
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
- const ambassadorWixDevcenterAppInstanceV1AppInstance = __importStar(require("./devcenter-app-instance-v1-app-instance-app-instances.http.js"));
30
- var PaymentCycle;
31
- (function (PaymentCycle) {
32
- PaymentCycle["NO_CYCLE"] = "NO_CYCLE";
33
- PaymentCycle["MONTHLY"] = "MONTHLY";
34
- PaymentCycle["YEARLY"] = "YEARLY";
35
- PaymentCycle["ONE_TIME"] = "ONE_TIME";
36
- PaymentCycle["TWO_YEARS"] = "TWO_YEARS";
37
- PaymentCycle["THREE_YEARS"] = "THREE_YEARS";
38
- PaymentCycle["FOUR_YEARS"] = "FOUR_YEARS";
39
- PaymentCycle["FIVE_YEARS"] = "FIVE_YEARS";
40
- })(PaymentCycle || (exports.PaymentCycle = PaymentCycle = {}));
41
- var FreeTrialStatus;
42
- (function (FreeTrialStatus) {
43
- /** Unknown trial status. */
44
- FreeTrialStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
45
- /** The free trial is currently in progress. */
46
- FreeTrialStatus["IN_PROGRESS"] = "IN_PROGRESS";
47
- /** The free trial has ended. */
48
- FreeTrialStatus["ENDED"] = "ENDED";
49
- /** No free trial was applied, as none was available. */
50
- FreeTrialStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
51
- })(FreeTrialStatus || (exports.FreeTrialStatus = FreeTrialStatus = {}));
52
- var FreeTrialPeriod;
53
- (function (FreeTrialPeriod) {
54
- /** Free trial status unknown. */
55
- FreeTrialPeriod["FREE_TRIAL_PERIOD_UNKNOWN"] = "FREE_TRIAL_PERIOD_UNKNOWN";
56
- /** During a free trial period. */
57
- FreeTrialPeriod["DURING_FREE_TRIAL"] = "DURING_FREE_TRIAL";
58
- /** Not during a free trial period. */
59
- FreeTrialPeriod["NOT_DURING_FREE_TRIAL"] = "NOT_DURING_FREE_TRIAL";
60
- })(FreeTrialPeriod || (exports.FreeTrialPeriod = FreeTrialPeriod = {}));
61
- var ReactivationReason;
62
- (function (ReactivationReason) {
63
- /** Reactivation reason unknown. */
64
- ReactivationReason["REACTIVATION_REASON_UNKNOWN"] = "REACTIVATION_REASON_UNKNOWN";
65
- /** The subscription's auto-renewal is turned on. */
66
- ReactivationReason["AUTO_RENEW_TURNED_ON"] = "AUTO_RENEW_TURNED_ON";
67
- })(ReactivationReason || (exports.ReactivationReason = ReactivationReason = {}));
68
- var ResolutionMethod;
69
- (function (ResolutionMethod) {
70
- ResolutionMethod["QUERY_PARAM"] = "QUERY_PARAM";
71
- ResolutionMethod["SUBDOMAIN"] = "SUBDOMAIN";
72
- ResolutionMethod["SUBDIRECTORY"] = "SUBDIRECTORY";
73
- })(ResolutionMethod || (exports.ResolutionMethod = ResolutionMethod = {}));
74
- var WebhookIdentityType;
75
- (function (WebhookIdentityType) {
76
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
77
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
78
- WebhookIdentityType["MEMBER"] = "MEMBER";
79
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
80
- WebhookIdentityType["APP"] = "APP";
81
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
82
- /**
83
- * Retrieves data about the instance of your app that's installed on a Wix
84
- * site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
85
- * or to check which apps made by Wix are installed on the site.
86
- *
87
- * You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request).
88
- *
89
- * To retrieve `site.ownerInfo` in the response, you must
90
- * have the __READ SITE OWNER EMAIL__ permission scope in addition to
91
- * __MANAGE YOUR APP__.
92
- * @public
93
- * @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
94
- * @permissionScope Manage Your App
95
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
96
- * @permissionScope Read site, business, and email details
97
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
98
- * @applicableIdentity APP
99
- * @fqn com.wixpress.market.aim.api.AppInstanceService.GetAppInstance
100
- */
101
- async function getAppInstance() {
102
- // @ts-ignore
103
- const { httpClient, sideEffects } = arguments[0];
104
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
105
- const reqOpts = ambassadorWixDevcenterAppInstanceV1AppInstance.getAppInstance(payload);
106
- sideEffects?.onSiteCall?.();
107
- try {
108
- const result = await httpClient.request(reqOpts);
109
- sideEffects?.onSuccess?.(result);
110
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
111
- }
112
- catch (err) {
113
- const transformedError = (0, transform_error_1.transformError)(err, {
114
- spreadPathsToArguments: {},
115
- explicitPathsToArguments: {},
116
- singleArgumentUnchanged: false,
117
- }, []);
118
- sideEffects?.onError?.(err);
119
- throw transformedError;
120
- }
121
- }
122
- exports.getAppInstance = getAppInstance;
123
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAwHD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AA+CD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAgGD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAmGD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA2ND;;;;;;;;;;;;;;;;;;GAkBG;AACI,KAAK,UAAU,cAAc;IAsBlC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,8CAA8C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,wCAqDC"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.context.js';
package/build/es/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.meta.js';
package/build/es/meta.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/devcenter-app-instance-v1-app-instance-app-instances.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
@@ -1,48 +0,0 @@
1
- import { getAppInstance as publicGetAppInstance } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
2
- import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
- import { onAppInstanceInstalled as publicOnAppInstanceInstalled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
5
- import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
6
- import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
7
- import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
8
- import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
9
- import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
10
- import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
11
- import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
12
- export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
13
- /**
14
- * Triggered when an instance of your app is installed on a Wix site.
15
- */
16
- export declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<typeof publicOnAppInstanceInstalled>>;
17
- /**
18
- * Triggered when an instance of your app is uninstalled from a Wix site.
19
- */
20
- export declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<typeof publicOnAppInstanceRemoved>>;
21
- /**
22
- * Triggered when a Wix user either cancels a paid plan for your app, or cancels the plan's auto-renewal. The
23
- * Wix user can continue to use your app until the end of the current billing
24
- * cycle.
25
- */
26
- export declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanAutoRenewalCancelled>>;
27
- /**
28
- * Triggered when a Wix user upgrades or downgrades their plan for your app.
29
- */
30
- export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanChanged>>;
31
- /**
32
- * Triggered when a Wix user purchases a paid plan for your app.
33
- */
34
- export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
35
- /**
36
- * Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
37
- */
38
- export declare const onAppInstancePlanConvertedToPaid: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanConvertedToPaid>>;
39
- /**
40
- * Triggered when auto-renewal is turned on for a paid plan.
41
- */
42
- export declare const onAppInstancePlanReactivated: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanReactivated>>;
43
- /**
44
- * Triggered when a paid plan for your app is transferred to a different Wix account.
45
- */
46
- export declare const onAppInstancePlanTransferred: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanTransferred>>;
47
- export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
48
- export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
@@ -1,48 +0,0 @@
1
- import { getAppInstance as publicGetAppInstance } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
2
- import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
- import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
4
- import { onAppInstanceInstalled as publicOnAppInstanceInstalled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
5
- import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
6
- import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
7
- import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
8
- import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
9
- import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
10
- import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
11
- import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
12
- export const getAppInstance = /*#__PURE__*/ createRESTModule(publicGetAppInstance);
13
- /**
14
- * Triggered when an instance of your app is installed on a Wix site.
15
- */
16
- export const onAppInstanceInstalled = createEventModule(publicOnAppInstanceInstalled);
17
- /**
18
- * Triggered when an instance of your app is uninstalled from a Wix site.
19
- */
20
- export const onAppInstanceRemoved = createEventModule(publicOnAppInstanceRemoved);
21
- /**
22
- * Triggered when a Wix user either cancels a paid plan for your app, or cancels the plan's auto-renewal. The
23
- * Wix user can continue to use your app until the end of the current billing
24
- * cycle.
25
- */
26
- export const onAppInstancePaidPlanAutoRenewalCancelled = createEventModule(publicOnAppInstancePaidPlanAutoRenewalCancelled);
27
- /**
28
- * Triggered when a Wix user upgrades or downgrades their plan for your app.
29
- */
30
- export const onAppInstancePaidPlanChanged = createEventModule(publicOnAppInstancePaidPlanChanged);
31
- /**
32
- * Triggered when a Wix user purchases a paid plan for your app.
33
- */
34
- export const onAppInstancePaidPlanPurchased = createEventModule(publicOnAppInstancePaidPlanPurchased);
35
- /**
36
- * Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
37
- */
38
- export const onAppInstancePlanConvertedToPaid = createEventModule(publicOnAppInstancePlanConvertedToPaid);
39
- /**
40
- * Triggered when auto-renewal is turned on for a paid plan.
41
- */
42
- export const onAppInstancePlanReactivated = createEventModule(publicOnAppInstancePlanReactivated);
43
- /**
44
- * Triggered when a paid plan for your app is transferred to a different Wix account.
45
- */
46
- export const onAppInstancePlanTransferred = createEventModule(publicOnAppInstancePlanTransferred);
47
- export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
48
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAC1I,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACtI,OAAO,EAAE,yCAAyC,IAAI,+CAA+C,EAAE,MAAM,kEAAkE,CAAC;AAChL,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,kEAAkE,CAAC;AAC1J,OAAO,EAAE,gCAAgC,IAAI,sCAAsC,EAAE,MAAM,kEAAkE,CAAC;AAC9J,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AAEtJ,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAE/B,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;AACpD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAE7B,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;AAClD;;;;GAIG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAIlD,iBAAiB,CAAC,+CAA+C,CAAC,CAAC;AACvE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAEvC,iBAAiB,CAAC,oCAAoC,CAAC,CAAC;AAC5D;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAEzC,iBAAiB,CAAC,sCAAsC,CAAC,CAAC;AAC9D;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAE1D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
@@ -1,13 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Retrieves data about the instance of your app that's installed on a Wix
4
- * site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
5
- * or to check which apps made by Wix are installed on the site.
6
- *
7
- * You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request).
8
- *
9
- * To retrieve `site.ownerInfo` in the response, you must
10
- * have the __READ SITE OWNER EMAIL__ permission scope in addition to
11
- * __MANAGE YOUR APP__.
12
- */
13
- export declare function getAppInstance(payload: object): RequestOptionsFactory<any>;
@@ -1,108 +0,0 @@
1
- import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
5
- function resolveComWixpressMarketAimApiAppInstanceServiceUrl(opts) {
6
- const domainToMappings = {
7
- 'api._api_base_domain_': [
8
- {
9
- srcPath: '/app-instance-manager-webapp',
10
- destPath: '',
11
- },
12
- ],
13
- 'www.wixapis.com': [
14
- {
15
- srcPath: '/apps',
16
- destPath: '',
17
- },
18
- ],
19
- 'wixapis.com': [
20
- {
21
- srcPath: '/apps',
22
- destPath: '',
23
- },
24
- ],
25
- 'dev._base_domain_': [
26
- {
27
- srcPath: '/_api/app-instance-manager',
28
- destPath: '',
29
- },
30
- {
31
- srcPath: '/api/v1/instance',
32
- destPath: '/v1/instance',
33
- },
34
- {
35
- srcPath: '/api/v1/scripts',
36
- destPath: '/v1/scripts',
37
- },
38
- ],
39
- 'manage._base_domain_': [
40
- {
41
- srcPath: '/_api/app-instance-manager',
42
- destPath: '',
43
- },
44
- ],
45
- 'www._base_domain_': [
46
- {
47
- srcPath: '/_api/app-instance-manager',
48
- destPath: '',
49
- },
50
- ],
51
- 'editor._base_domain_': [
52
- {
53
- srcPath: '/_api/app-instance-manager',
54
- destPath: '',
55
- },
56
- ],
57
- 'blocks._base_domain_': [
58
- {
59
- srcPath: '/_api/app-instance-manager',
60
- destPath: '',
61
- },
62
- ],
63
- 'create.editorx': [
64
- {
65
- srcPath: '/_api/app-instance-manager',
66
- destPath: '',
67
- },
68
- ],
69
- };
70
- return resolveUrl(Object.assign(opts, { domainToMappings }));
71
- }
72
- const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-instances';
73
- /**
74
- * Retrieves data about the instance of your app that's installed on a Wix
75
- * site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
76
- * or to check which apps made by Wix are installed on the site.
77
- *
78
- * You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request).
79
- *
80
- * To retrieve `site.ownerInfo` in the response, you must
81
- * have the __READ SITE OWNER EMAIL__ permission scope in addition to
82
- * __MANAGE YOUR APP__.
83
- */
84
- export function getAppInstance(payload) {
85
- function __getAppInstance({ host }) {
86
- const metadata = {
87
- entityFqdn: 'wix.devcenter.app_instance.v1.app_instance',
88
- method: 'GET',
89
- methodFqn: 'com.wixpress.market.aim.api.AppInstanceService.GetAppInstance',
90
- packageName: PACKAGE_NAME,
91
- url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({
92
- protoPath: '/v1/instance',
93
- data: payload,
94
- host,
95
- }),
96
- params: toURLSearchParams(payload),
97
- transformResponse: (payload) => transformPaths(payload, [
98
- {
99
- transformFn: transformRESTTimestampToSDKTimestamp,
100
- paths: [{ path: 'instance.billing.freeTrialInfo.endDate' }],
101
- },
102
- ]),
103
- };
104
- return metadata;
105
- }
106
- return __getAppInstance;
107
- }
108
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.http.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAA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C,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;iBAC5D;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixDevcenterAppInstanceV1AppInstanceTypes from './devcenter-app-instance-v1-app-instance-app-instances.types.js';
2
- import * as ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function getAppInstance(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceRequest, ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceRequest, ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceResponse, ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceResponse>;
@@ -1,20 +0,0 @@
1
- import * as ambassadorWixDevcenterAppInstanceV1AppInstance from './devcenter-app-instance-v1-app-instance-app-instances.http.js';
2
- export function getAppInstance() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixDevcenterAppInstanceV1AppInstance.getAppInstance(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'GET',
12
- path: '/v1/instance',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.meta.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8CAA8C,MAAM,gEAAgE,CAAC;AAsBjI,MAAM,UAAU,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8CAA8C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function getAppInstance(httpClient: HttpClient): GetAppInstanceSignature;
7
- interface GetAppInstanceSignature {
8
- /**
9
- * Retrieves data about the instance of your app that's installed on a Wix
10
- * site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
11
- * or to check which apps made by Wix are installed on the site.
12
- *
13
- * You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request).
14
- *
15
- * To retrieve `site.ownerInfo` in the response, you must
16
- * have the __READ SITE OWNER EMAIL__ permission scope in addition to
17
- * __MANAGE YOUR APP__.
18
- */
19
- (): Promise<GetAppInstanceResponse>;
20
- }
21
- export declare const onAppInstanceInstalled: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
22
- export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
23
- export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
24
- export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
25
- export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
26
- export declare const onAppInstancePlanConvertedToPaid: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
27
- export declare const onAppInstancePlanReactivated: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
28
- export declare const onAppInstancePlanTransferred: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
29
- export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialStatus, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, GetAppInstanceResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ResolutionMethod, SiteInfo, SupportedLanguage, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
@@ -1,60 +0,0 @@
1
- import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
2
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
- import { EventDefinition } from '@wix/sdk-types';
5
- import { getAppInstance as universalGetAppInstance, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
6
- export const __metadata = { PACKAGE_NAME: '@wix/app-management' };
7
- export function getAppInstance(httpClient) {
8
- return () => universalGetAppInstance(
9
- // @ts-ignore
10
- { httpClient });
11
- }
12
- export const onAppInstanceInstalled = EventDefinition('AppInstalled', false, (event) => renameKeysFromRESTResponseToSDKResponse(event))();
13
- export const onAppInstanceRemoved = EventDefinition('AppRemoved', false, (event) => renameKeysFromRESTResponseToSDKResponse(event))();
14
- export const onAppInstancePaidPlanAutoRenewalCancelled = EventDefinition('PaidPlanAutoRenewalCancelled', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
15
- {
16
- transformFn: transformRESTTimestampToSDKTimestamp,
17
- paths: [{ path: 'data.operationTimeStamp' }],
18
- },
19
- ])))();
20
- export const onAppInstancePaidPlanChanged = EventDefinition('PaidPlanChanged', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
21
- {
22
- transformFn: transformRESTTimestampToSDKTimestamp,
23
- paths: [{ path: 'data.operationTimeStamp' }],
24
- },
25
- ])))();
26
- export const onAppInstancePaidPlanPurchased = EventDefinition('PaidPlanPurchased', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
27
- {
28
- transformFn: transformRESTTimestampToSDKTimestamp,
29
- paths: [
30
- { path: 'data.operationTimeStamp' },
31
- { path: 'data.expiresOn' },
32
- ],
33
- },
34
- ])))();
35
- export const onAppInstancePlanConvertedToPaid = EventDefinition('PlanConvertedToPaid', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
36
- {
37
- transformFn: transformRESTTimestampToSDKTimestamp,
38
- paths: [
39
- { path: 'data.operationTimeStamp' },
40
- { path: 'data.expiresOn' },
41
- ],
42
- },
43
- ])))();
44
- export const onAppInstancePlanReactivated = EventDefinition('PlanReactivated', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
45
- {
46
- transformFn: transformRESTTimestampToSDKTimestamp,
47
- paths: [
48
- { path: 'data.operationTimeStamp' },
49
- { path: 'data.expiresOn' },
50
- ],
51
- },
52
- ])))();
53
- export const onAppInstancePlanTransferred = EventDefinition('PlanTransferred', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
54
- {
55
- transformFn: transformRESTTimestampToSDKTimestamp,
56
- paths: [{ path: 'data.operationTimeStamp' }],
57
- },
58
- ])))();
59
- export { FreeTrialPeriod, FreeTrialStatus, PaymentCycle, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
60
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,E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,kBAAkB,EAClB,gBAAgB,EAGhB,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
@@ -1,53 +0,0 @@
1
- export var PaymentCycle;
2
- (function (PaymentCycle) {
3
- PaymentCycle["NO_CYCLE"] = "NO_CYCLE";
4
- PaymentCycle["MONTHLY"] = "MONTHLY";
5
- PaymentCycle["YEARLY"] = "YEARLY";
6
- PaymentCycle["ONE_TIME"] = "ONE_TIME";
7
- PaymentCycle["TWO_YEARS"] = "TWO_YEARS";
8
- PaymentCycle["THREE_YEARS"] = "THREE_YEARS";
9
- PaymentCycle["FOUR_YEARS"] = "FOUR_YEARS";
10
- PaymentCycle["FIVE_YEARS"] = "FIVE_YEARS";
11
- })(PaymentCycle || (PaymentCycle = {}));
12
- export var FreeTrialStatus;
13
- (function (FreeTrialStatus) {
14
- /** Unknown trial status. */
15
- FreeTrialStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
16
- /** The free trial is currently in progress. */
17
- FreeTrialStatus["IN_PROGRESS"] = "IN_PROGRESS";
18
- /** The free trial has ended. */
19
- FreeTrialStatus["ENDED"] = "ENDED";
20
- /** No free trial was applied, as none was available. */
21
- FreeTrialStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
22
- })(FreeTrialStatus || (FreeTrialStatus = {}));
23
- export var FreeTrialPeriod;
24
- (function (FreeTrialPeriod) {
25
- /** Free trial status unknown. */
26
- FreeTrialPeriod["FREE_TRIAL_PERIOD_UNKNOWN"] = "FREE_TRIAL_PERIOD_UNKNOWN";
27
- /** During a free trial period. */
28
- FreeTrialPeriod["DURING_FREE_TRIAL"] = "DURING_FREE_TRIAL";
29
- /** Not during a free trial period. */
30
- FreeTrialPeriod["NOT_DURING_FREE_TRIAL"] = "NOT_DURING_FREE_TRIAL";
31
- })(FreeTrialPeriod || (FreeTrialPeriod = {}));
32
- export var ReactivationReason;
33
- (function (ReactivationReason) {
34
- /** Reactivation reason unknown. */
35
- ReactivationReason["REACTIVATION_REASON_UNKNOWN"] = "REACTIVATION_REASON_UNKNOWN";
36
- /** The subscription's auto-renewal is turned on. */
37
- ReactivationReason["AUTO_RENEW_TURNED_ON"] = "AUTO_RENEW_TURNED_ON";
38
- })(ReactivationReason || (ReactivationReason = {}));
39
- export var ResolutionMethod;
40
- (function (ResolutionMethod) {
41
- ResolutionMethod["QUERY_PARAM"] = "QUERY_PARAM";
42
- ResolutionMethod["SUBDOMAIN"] = "SUBDOMAIN";
43
- ResolutionMethod["SUBDIRECTORY"] = "SUBDIRECTORY";
44
- })(ResolutionMethod || (ResolutionMethod = {}));
45
- export var WebhookIdentityType;
46
- (function (WebhookIdentityType) {
47
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
48
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
49
- WebhookIdentityType["MEMBER"] = "MEMBER";
50
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
51
- WebhookIdentityType["APP"] = "APP";
52
- })(WebhookIdentityType || (WebhookIdentityType = {}));
53
- //# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.types.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts"],"names":[],"mappings":"AAgGA,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AA2BD,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDA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