@wix/auto_sdk_app-management_app-instances 1.0.47 → 1.0.49

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 (40) hide show
  1. package/build/cjs/index.d.ts +4 -1
  2. package/build/cjs/index.js +16 -18
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +4 -1
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/es/index.d.mts +4 -1
  7. package/build/es/index.mjs +16 -18
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +4 -1
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/internal/cjs/index.d.ts +4 -1
  12. package/build/internal/cjs/index.typings.d.ts +4 -1
  13. package/build/internal/es/index.d.mts +4 -1
  14. package/build/internal/es/index.typings.d.mts +4 -1
  15. package/package.json +5 -12
  16. package/build/cjs/schemas.d.ts +0 -81
  17. package/build/cjs/schemas.js +0 -174
  18. package/build/cjs/schemas.js.map +0 -1
  19. package/build/es/schemas.d.mts +0 -81
  20. package/build/es/schemas.mjs +0 -136
  21. package/build/es/schemas.mjs.map +0 -1
  22. package/build/internal/cjs/index.js +0 -415
  23. package/build/internal/cjs/index.js.map +0 -1
  24. package/build/internal/cjs/index.typings.js +0 -265
  25. package/build/internal/cjs/index.typings.js.map +0 -1
  26. package/build/internal/cjs/meta.js +0 -258
  27. package/build/internal/cjs/meta.js.map +0 -1
  28. package/build/internal/cjs/schemas.d.ts +0 -81
  29. package/build/internal/cjs/schemas.js +0 -174
  30. package/build/internal/cjs/schemas.js.map +0 -1
  31. package/build/internal/es/index.mjs +0 -377
  32. package/build/internal/es/index.mjs.map +0 -1
  33. package/build/internal/es/index.typings.mjs +0 -235
  34. package/build/internal/es/index.typings.mjs.map +0 -1
  35. package/build/internal/es/meta.mjs +0 -225
  36. package/build/internal/es/meta.mjs.map +0 -1
  37. package/build/internal/es/schemas.d.mts +0 -81
  38. package/build/internal/es/schemas.mjs +0 -136
  39. package/build/internal/es/schemas.mjs.map +0 -1
  40. package/schemas/package.json +0 -3
@@ -1,136 +0,0 @@
1
- // src/devcenter-app-instance-v1-app-instance-app-instances.schemas.ts
2
- import * as z from "zod";
3
- var GetAppInstanceRequest = z.object({});
4
- var GetAppInstanceResponse = z.object({
5
- instance: z.object({
6
- instanceId: z.string().describe(
7
- "App instance ID. Useful to keep track of the\ndata that's associated with the specific instance of your app\ninstalled on a Wix site."
8
- ).optional(),
9
- appName: z.string().describe("App name, as you entered it in the App Dashboard.").optional(),
10
- appVersion: z.string().describe("Version of your app that's installed on the Wix site.").optional().nullable(),
11
- isFree: z.boolean().describe(
12
- "Whether the Wix user has installed a free or paid version of your app\non their site."
13
- ).optional(),
14
- billing: z.object({
15
- packageName: z.string().describe("Name of the package that the site owner has paid for.").optional(),
16
- billingCycle: z.enum([
17
- "NO_CYCLE",
18
- "MONTHLY",
19
- "YEARLY",
20
- "ONE_TIME",
21
- "TWO_YEARS",
22
- "THREE_YEARS",
23
- "FOUR_YEARS",
24
- "FIVE_YEARS"
25
- ]).describe(
26
- "Interval of the billing cycle. `ONE_TIME` indicates that the Wix user has\nmade a single upfront payment without any automatic subscription renewal.\nThis is primarily for usage credits (for example, 5 SMS) but may occasionally apply\nto a one-time setup for the app."
27
- ).optional(),
28
- timeStamp: z.string().describe(
29
- "Date and time the Wix user purchased the app's paid plan or began their free trial. In\n`YYYY-MM-DDThh:mm:ss.sssZ` format."
30
- ).optional(),
31
- expirationDate: z.string().describe(
32
- "Date and time the app's current billing cycle ends in\n`YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and\nmulti-yearly plans."
33
- ).optional().nullable(),
34
- autoRenewing: z.boolean().describe(
35
- "Whether the app's subscription automatically renews at the end of the\ncurrent billing cycle."
36
- ).optional().nullable(),
37
- invoiceId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe("ID of the invoice for the current billing cycle.").optional().nullable(),
38
- source: z.string().describe(
39
- "Information about any discounts applied to the app instance's current billing cycle.\nIf the site owners applied a developer coupon or Wix Voucher\nwhen installing the paid version of your app, this field holds the coupon's\nname or `\u201CWix discount coupon\u201D`. Site owners may receive a Wix Voucher when\nupgrading their Wix subscription. If there is no discount for the\ncurrent billing cycle, the field is an empty string."
40
- ).optional().nullable(),
41
- freeTrialInfo: z.object({
42
- status: z.enum(["IN_PROGRESS", "ENDED", "NOT_AVAILABLE"]).describe("Current free trial status.").optional(),
43
- endDate: z.date().describe(
44
- "When the free trial has ended. Populated only once the free trial is over."
45
- ).optional().nullable()
46
- }).describe("Information about the free trial applied, if relevant.").optional()
47
- }).describe(
48
- 'Billing information for the app instance. Available only in case\n`{"isFree": false}`.'
49
- ).optional(),
50
- permissions: z.array(z.string()).optional(),
51
- availablePlans: z.array(
52
- z.object({
53
- packageName: z.string().describe("Package name of the available plan.").optional(),
54
- source: z.string().describe(
55
- "Source of the available plan. Can be a bundle or 3rd-party app."
56
- ).optional()
57
- })
58
- ).optional(),
59
- originInstanceId: z.string().describe(
60
- "ID of the Wix site from which the instance of your app has been cloned.\n\nAll visual settings of the Wix site and app data are duplicated during the\ncloning process. Wix also notifies you in case there is any additional\nexternal functionality for the original site."
61
- ).optional().nullable(),
62
- isOriginSiteTemplate: z.boolean().describe(
63
- "__Deprecated__. This parameter will be removed on March 30, 2023. Use\n`copiedFromTemplate` instead."
64
- ).optional(),
65
- copiedFromTemplate: z.boolean().describe(
66
- "Whether this app instance was created when another Wix site was cloned."
67
- ).optional(),
68
- freeTrialAvailable: z.boolean().describe(
69
- "Whether this app instance includes a free trial that hasn't started yet."
70
- ).optional()
71
- }).describe("Retrieved app instance.").optional(),
72
- site: z.object({
73
- siteDisplayName: z.string().describe("Display name of the site.").optional().nullable(),
74
- locale: z.string().describe(
75
- "2-letter language code of the site's locale in\n[ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format."
76
- ).optional(),
77
- paymentCurrency: z.string().describe(
78
- "3-letter currency code for the site's billing in\n[ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format."
79
- ).optional(),
80
- multilingual: z.object({
81
- isMultiLingual: z.boolean().describe("Whether the site supports more than a single language.").optional(),
82
- supportedLanguages: z.array(
83
- z.object({
84
- languageCode: z.string().describe(
85
- "Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format."
86
- ).optional(),
87
- locale: z.object({
88
- languageCode: z.string().describe(
89
- "Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format."
90
- ).optional(),
91
- country: z.string().describe(
92
- "Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format."
93
- ).optional()
94
- }).describe("Locale.").optional(),
95
- isPrimary: z.boolean().describe(
96
- "Whether the supported language is the primary language for the site."
97
- ).optional(),
98
- countryCode: z.string().describe("Language icon.").optional(),
99
- resolutionMethod: z.enum(["QUERY_PARAM", "SUBDOMAIN", "SUBDIRECTORY"]).describe(
100
- "How the language will be resolved. For internal use."
101
- ).optional(),
102
- isVisitorPrimary: z.boolean().describe(
103
- "Whether the supported language is the primary language for site visitors."
104
- ).optional().nullable()
105
- })
106
- ).optional()
107
- }).describe("Information about the site's supported languages.").optional(),
108
- url: z.string().describe(
109
- "URL of the site. Available only when the site has been published."
110
- ).optional().nullable(),
111
- description: z.string().describe("Description of the site.").optional().nullable(),
112
- installedWixApps: z.array(z.string()).optional(),
113
- ownerEmail: z.string().describe(
114
- "> **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead."
115
- ).email().optional().nullable(),
116
- ownerInfo: z.object({
117
- email: z.string().describe(
118
- "Wix user's email address. Identical to the their login email."
119
- ).email().optional(),
120
- emailStatus: z.string().describe(
121
- "Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,\n`NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.\n\nWhether the Wix user has verified their email and whether they have chosen\nto receive email notifications from Wix."
122
- ).optional()
123
- }).describe(
124
- "Information about the site's Wix user. Available only when calling\n_Get App Instance_ with the __Read Site Owner Email__ permission scope."
125
- ).optional(),
126
- siteId: z.string().describe("Site ID.").optional(),
127
- siteUserType: z.string().describe(
128
- 'Type of Wix user who owns the site.\nAvailable only when calling _Get App Instance_ with the __Read Site User Type__ permission scope.\nSupported values: `"Channel DIY"`, `"Channel DIFM"`, `"Enterprise"`.'
129
- ).optional().nullable()
130
- }).describe("Information about the site.").optional()
131
- });
132
- export {
133
- GetAppInstanceRequest,
134
- GetAppInstanceResponse
135
- };
136
- //# sourceMappingURL=schemas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/devcenter-app-instance-v1-app-instance-app-instances.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetAppInstanceRequest = z.object({});\nexport const GetAppInstanceResponse = z.object({\n instance: z\n .object({\n instanceId: z\n .string()\n .describe(\n \"App instance ID. Useful to keep track of the\\ndata that's associated with the specific instance of your app\\ninstalled on a Wix site.\"\n )\n .optional(),\n appName: z\n .string()\n .describe('App name, as you entered it in the App Dashboard.')\n .optional(),\n appVersion: z\n .string()\n .describe(\"Version of your app that's installed on the Wix site.\")\n .optional()\n .nullable(),\n isFree: z\n .boolean()\n .describe(\n 'Whether the Wix user has installed a free or paid version of your app\\non their site.'\n )\n .optional(),\n billing: z\n .object({\n packageName: z\n .string()\n .describe('Name of the package that the site owner has paid for.')\n .optional(),\n billingCycle: z\n .enum([\n 'NO_CYCLE',\n 'MONTHLY',\n 'YEARLY',\n 'ONE_TIME',\n 'TWO_YEARS',\n 'THREE_YEARS',\n 'FOUR_YEARS',\n 'FIVE_YEARS',\n ])\n .describe(\n 'Interval of the billing cycle. `ONE_TIME` indicates that the Wix user has\\nmade a single upfront payment without any automatic subscription renewal.\\nThis is primarily for usage credits (for example, 5 SMS) but may occasionally apply\\nto a one-time setup for the app.'\n )\n .optional(),\n timeStamp: z\n .string()\n .describe(\n \"Date and time the Wix user purchased the app's paid plan or began their free trial. In\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.\"\n )\n .optional(),\n expirationDate: z\n .string()\n .describe(\n \"Date and time the app's current billing cycle ends in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and\\nmulti-yearly plans.\"\n )\n .optional()\n .nullable(),\n autoRenewing: z\n .boolean()\n .describe(\n \"Whether the app's subscription automatically renews at the end of the\\ncurrent billing cycle.\"\n )\n .optional()\n .nullable(),\n invoiceId: z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe('ID of the invoice for the current billing cycle.')\n .optional()\n .nullable(),\n source: z\n .string()\n .describe(\n \"Information about any discounts applied to the app instance's current billing cycle.\\nIf the site owners applied a developer coupon or Wix Voucher\\nwhen installing the paid version of your app, this field holds the coupon's\\nname or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when\\nupgrading their Wix subscription. If there is no discount for the\\ncurrent billing cycle, the field is an empty string.\"\n )\n .optional()\n .nullable(),\n freeTrialInfo: z\n .object({\n status: z\n .enum(['IN_PROGRESS', 'ENDED', 'NOT_AVAILABLE'])\n .describe('Current free trial status.')\n .optional(),\n endDate: z\n .date()\n .describe(\n 'When the free trial has ended. Populated only once the free trial is over.'\n )\n .optional()\n .nullable(),\n })\n .describe('Information about the free trial applied, if relevant.')\n .optional(),\n })\n .describe(\n 'Billing information for the app instance. Available only in case\\n`{\"isFree\": false}`.'\n )\n .optional(),\n permissions: z.array(z.string()).optional(),\n availablePlans: z\n .array(\n z.object({\n packageName: z\n .string()\n .describe('Package name of the available plan.')\n .optional(),\n source: z\n .string()\n .describe(\n 'Source of the available plan. Can be a bundle or 3rd-party app.'\n )\n .optional(),\n })\n )\n .optional(),\n originInstanceId: z\n .string()\n .describe(\n 'ID of the Wix site from which the instance of your app has been cloned.\\n\\nAll visual settings of the Wix site and app data are duplicated during the\\ncloning process. Wix also notifies you in case there is any additional\\nexternal functionality for the original site.'\n )\n .optional()\n .nullable(),\n isOriginSiteTemplate: z\n .boolean()\n .describe(\n '__Deprecated__. This parameter will be removed on March 30, 2023. Use\\n`copiedFromTemplate` instead.'\n )\n .optional(),\n copiedFromTemplate: z\n .boolean()\n .describe(\n 'Whether this app instance was created when another Wix site was cloned.'\n )\n .optional(),\n freeTrialAvailable: z\n .boolean()\n .describe(\n \"Whether this app instance includes a free trial that hasn't started yet.\"\n )\n .optional(),\n })\n .describe('Retrieved app instance.')\n .optional(),\n site: z\n .object({\n siteDisplayName: z\n .string()\n .describe('Display name of the site.')\n .optional()\n .nullable(),\n locale: z\n .string()\n .describe(\n \"2-letter language code of the site's locale in\\n[ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\"\n )\n .optional(),\n paymentCurrency: z\n .string()\n .describe(\n \"3-letter currency code for the site's billing in\\n[ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\"\n )\n .optional(),\n multilingual: z\n .object({\n isMultiLingual: z\n .boolean()\n .describe('Whether the site supports more than a single language.')\n .optional(),\n supportedLanguages: z\n .array(\n z.object({\n languageCode: z\n .string()\n .describe(\n 'Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.'\n )\n .optional(),\n locale: z\n .object({\n languageCode: z\n .string()\n .describe(\n 'Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.'\n )\n .optional(),\n country: z\n .string()\n .describe(\n 'Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional(),\n })\n .describe('Locale.')\n .optional(),\n isPrimary: z\n .boolean()\n .describe(\n 'Whether the supported language is the primary language for the site.'\n )\n .optional(),\n countryCode: z.string().describe('Language icon.').optional(),\n resolutionMethod: z\n .enum(['QUERY_PARAM', 'SUBDOMAIN', 'SUBDIRECTORY'])\n .describe(\n 'How the language will be resolved. For internal use.'\n )\n .optional(),\n isVisitorPrimary: z\n .boolean()\n .describe(\n 'Whether the supported language is the primary language for site visitors.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n })\n .describe(\"Information about the site's supported languages.\")\n .optional(),\n url: z\n .string()\n .describe(\n 'URL of the site. Available only when the site has been published.'\n )\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Description of the site.')\n .optional()\n .nullable(),\n installedWixApps: z.array(z.string()).optional(),\n ownerEmail: z\n .string()\n .describe(\n '> **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.'\n )\n .email()\n .optional()\n .nullable(),\n ownerInfo: z\n .object({\n email: z\n .string()\n .describe(\n \"Wix user's email address. Identical to the their login email.\"\n )\n .email()\n .optional(),\n emailStatus: z\n .string()\n .describe(\n 'Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,\\n`NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.\\n\\nWhether the Wix user has verified their email and whether they have chosen\\nto receive email notifications from Wix.'\n )\n .optional(),\n })\n .describe(\n \"Information about the site's Wix user. Available only when calling\\n_Get App Instance_ with the __Read Site Owner Email__ permission scope.\"\n )\n .optional(),\n siteId: z.string().describe('Site ID.').optional(),\n siteUserType: z\n .string()\n .describe(\n 'Type of Wix user who owns the site.\\nAvailable only when calling _Get App Instance_ with the __Read Site User Type__ permission scope.\\nSupported values: `\"Channel DIY\"`, `\"Channel DIFM\"`, `\"Enterprise\"`.'\n )\n .optional()\n .nullable(),\n })\n .describe('Information about the site.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO,CAAC,CAAC;AACzC,IAAM,yBAA2B,SAAO;AAAA,EAC7C,UACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;A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T,SAAS;AAAA,QACd,CAAC;AAAA,MACH,EACC,SAAS;AAAA,IACd,CAAC,EACA,SAAS,mDAAmD,EAC5D,SAAS;AAAA,IACZ,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO,EACP,SAAS,0BAA0B,EACnC,SAAS,EACT,SAAS;AAAA,IACZ,kBAAoB,QAAQ,SAAO,CAAC,EAAE,SAAS;AAAA,IAC/C,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,MAAM,EACN,SAAS,EACT,SAAS;AAAA,IACZ,WACG,SAAO;AAAA,MACN,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,MAAM,EACN,SAAS;AAAA,MACZ,aACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QAAU,SAAO,EAAE,SAAS,UAAU,EAAE,SAAS;AAAA,IACjD,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,6BAA6B,EACtC,SAAS;AACd,CAAC;","names":[]}
@@ -1,415 +0,0 @@
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
- FreeTrialPeriod: () => FreeTrialPeriod,
24
- FreeTrialStatus: () => FreeTrialStatus,
25
- PaymentCycle: () => PaymentCycle,
26
- ReactivationReason: () => ReactivationReason,
27
- ResolutionMethod: () => ResolutionMethod,
28
- WebhookIdentityType: () => WebhookIdentityType,
29
- getAppInstance: () => getAppInstance4,
30
- onAppInstanceInstalled: () => onAppInstanceInstalled2,
31
- onAppInstancePaidPlanAutoRenewalCancelled: () => onAppInstancePaidPlanAutoRenewalCancelled2,
32
- onAppInstancePaidPlanChanged: () => onAppInstancePaidPlanChanged2,
33
- onAppInstancePaidPlanPurchased: () => onAppInstancePaidPlanPurchased2,
34
- onAppInstancePlanConvertedToPaid: () => onAppInstancePlanConvertedToPaid2,
35
- onAppInstancePlanReactivated: () => onAppInstancePlanReactivated2,
36
- onAppInstancePlanTransferred: () => onAppInstancePlanTransferred2,
37
- onAppInstanceRemoved: () => onAppInstanceRemoved2
38
- });
39
- module.exports = __toCommonJS(index_exports);
40
-
41
- // src/devcenter-app-instance-v1-app-instance-app-instances.public.ts
42
- var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
43
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
44
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
45
- var import_sdk_types = require("@wix/sdk-types");
46
-
47
- // src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts
48
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
49
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
50
-
51
- // src/devcenter-app-instance-v1-app-instance-app-instances.http.ts
52
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
53
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
54
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
55
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
56
- function resolveComWixpressMarketAimApiAppInstanceServiceUrl(opts) {
57
- const domainToMappings = {
58
- "api._api_base_domain_": [
59
- {
60
- srcPath: "/app-instance-manager-webapp",
61
- destPath: ""
62
- }
63
- ],
64
- "www.wixapis.com": [
65
- {
66
- srcPath: "/apps",
67
- destPath: ""
68
- }
69
- ],
70
- "wixapis.com": [
71
- {
72
- srcPath: "/apps",
73
- destPath: ""
74
- }
75
- ],
76
- "dev._base_domain_": [
77
- {
78
- srcPath: "/_api/app-instance-manager",
79
- destPath: ""
80
- },
81
- {
82
- srcPath: "/api/v1/instance",
83
- destPath: "/v1/instance"
84
- },
85
- {
86
- srcPath: "/api/v1/scripts",
87
- destPath: "/v1/scripts"
88
- }
89
- ],
90
- "manage._base_domain_": [
91
- {
92
- srcPath: "/_api/app-instance-manager",
93
- destPath: ""
94
- }
95
- ],
96
- "www._base_domain_": [
97
- {
98
- srcPath: "/_api/app-instance-manager",
99
- destPath: ""
100
- }
101
- ],
102
- "editor._base_domain_": [
103
- {
104
- srcPath: "/_api/app-instance-manager",
105
- destPath: ""
106
- }
107
- ],
108
- "blocks._base_domain_": [
109
- {
110
- srcPath: "/_api/app-instance-manager",
111
- destPath: ""
112
- }
113
- ],
114
- "create.editorx": [
115
- {
116
- srcPath: "/_api/app-instance-manager",
117
- destPath: ""
118
- }
119
- ],
120
- "*.dev.wix-code.com": [
121
- {
122
- srcPath: "/devcenter/app-instance/v1/instance",
123
- destPath: "/v1/instance"
124
- },
125
- {
126
- srcPath: "/devcenter/checkout/v1/checkout",
127
- destPath: "/v1/checkout"
128
- },
129
- {
130
- srcPath: "/devcenter/checkout/v1/metered-billing-charges",
131
- destPath: "/v1/metered-billing-charges"
132
- },
133
- {
134
- srcPath: "/devcenter/scripts/v1/scripts",
135
- destPath: "/v1/scripts"
136
- },
137
- {
138
- srcPath: "/market/aim/v1/billing-event",
139
- destPath: "/v1/billing-event"
140
- },
141
- {
142
- srcPath: "/devcenter/bi-events/v1/bi-event",
143
- destPath: "/v1/bi-event"
144
- }
145
- ],
146
- _: [
147
- {
148
- srcPath: "/devcenter/app-instance/v1/instance",
149
- destPath: "/v1/instance"
150
- },
151
- {
152
- srcPath: "/devcenter/checkout/v1/checkout",
153
- destPath: "/v1/checkout"
154
- },
155
- {
156
- srcPath: "/devcenter/checkout/v1/metered-billing-charges",
157
- destPath: "/v1/metered-billing-charges"
158
- },
159
- {
160
- srcPath: "/devcenter/scripts/v1/scripts",
161
- destPath: "/v1/scripts"
162
- },
163
- {
164
- srcPath: "/market/aim/v1/billing-event",
165
- destPath: "/v1/billing-event"
166
- },
167
- {
168
- srcPath: "/devcenter/bi-events/v1/bi-event",
169
- destPath: "/v1/bi-event"
170
- }
171
- ]
172
- };
173
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
174
- }
175
- var PACKAGE_NAME = "@wix/auto_sdk_app-management_app-instances";
176
- function getAppInstance(payload) {
177
- function __getAppInstance({ host }) {
178
- const metadata = {
179
- entityFqdn: "wix.devcenter.app_instance.v1.app_instance",
180
- method: "GET",
181
- methodFqn: "com.wixpress.market.aim.api.AppInstanceService.GetAppInstance",
182
- packageName: PACKAGE_NAME,
183
- migrationOptions: {
184
- optInTransformResponse: true
185
- },
186
- url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({
187
- protoPath: "/v1/instance",
188
- data: payload,
189
- host
190
- }),
191
- params: (0, import_rest_modules.toURLSearchParams)(payload),
192
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
193
- {
194
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
195
- paths: [{ path: "instance.billing.freeTrialInfo.endDate" }]
196
- }
197
- ])
198
- };
199
- return metadata;
200
- }
201
- return __getAppInstance;
202
- }
203
-
204
- // src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts
205
- var PaymentCycle = /* @__PURE__ */ ((PaymentCycle2) => {
206
- PaymentCycle2["NO_CYCLE"] = "NO_CYCLE";
207
- PaymentCycle2["MONTHLY"] = "MONTHLY";
208
- PaymentCycle2["YEARLY"] = "YEARLY";
209
- PaymentCycle2["ONE_TIME"] = "ONE_TIME";
210
- PaymentCycle2["TWO_YEARS"] = "TWO_YEARS";
211
- PaymentCycle2["THREE_YEARS"] = "THREE_YEARS";
212
- PaymentCycle2["FOUR_YEARS"] = "FOUR_YEARS";
213
- PaymentCycle2["FIVE_YEARS"] = "FIVE_YEARS";
214
- return PaymentCycle2;
215
- })(PaymentCycle || {});
216
- var FreeTrialStatus = /* @__PURE__ */ ((FreeTrialStatus2) => {
217
- FreeTrialStatus2["IN_PROGRESS"] = "IN_PROGRESS";
218
- FreeTrialStatus2["ENDED"] = "ENDED";
219
- FreeTrialStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
220
- return FreeTrialStatus2;
221
- })(FreeTrialStatus || {});
222
- var FreeTrialPeriod = /* @__PURE__ */ ((FreeTrialPeriod2) => {
223
- FreeTrialPeriod2["DURING_FREE_TRIAL"] = "DURING_FREE_TRIAL";
224
- FreeTrialPeriod2["NOT_DURING_FREE_TRIAL"] = "NOT_DURING_FREE_TRIAL";
225
- return FreeTrialPeriod2;
226
- })(FreeTrialPeriod || {});
227
- var ReactivationReason = /* @__PURE__ */ ((ReactivationReason2) => {
228
- ReactivationReason2["REACTIVATION_REASON_UNKNOWN"] = "REACTIVATION_REASON_UNKNOWN";
229
- ReactivationReason2["AUTO_RENEW_TURNED_ON"] = "AUTO_RENEW_TURNED_ON";
230
- return ReactivationReason2;
231
- })(ReactivationReason || {});
232
- var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
233
- ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
234
- ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
235
- ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
236
- return ResolutionMethod2;
237
- })(ResolutionMethod || {});
238
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
239
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
240
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
241
- WebhookIdentityType2["MEMBER"] = "MEMBER";
242
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
243
- WebhookIdentityType2["APP"] = "APP";
244
- return WebhookIdentityType2;
245
- })(WebhookIdentityType || {});
246
- async function getAppInstance2() {
247
- const { httpClient, sideEffects } = arguments[0];
248
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
249
- const reqOpts = getAppInstance(payload);
250
- sideEffects?.onSiteCall?.();
251
- try {
252
- const result = await httpClient.request(reqOpts);
253
- sideEffects?.onSuccess?.(result);
254
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
255
- } catch (err) {
256
- const transformedError = (0, import_transform_error.transformError)(
257
- err,
258
- {
259
- spreadPathsToArguments: {},
260
- explicitPathsToArguments: {},
261
- singleArgumentUnchanged: false
262
- },
263
- []
264
- );
265
- sideEffects?.onError?.(err);
266
- throw transformedError;
267
- }
268
- }
269
-
270
- // src/devcenter-app-instance-v1-app-instance-app-instances.public.ts
271
- function getAppInstance3(httpClient) {
272
- return () => getAppInstance2(
273
- // @ts-ignore
274
- { httpClient }
275
- );
276
- }
277
- var onAppInstanceInstalled = (0, import_sdk_types.EventDefinition)(
278
- "AppInstalled",
279
- false,
280
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(event)
281
- )();
282
- var onAppInstanceRemoved = (0, import_sdk_types.EventDefinition)(
283
- "AppRemoved",
284
- false,
285
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(event)
286
- )();
287
- var onAppInstancePaidPlanAutoRenewalCancelled = (0, import_sdk_types.EventDefinition)(
288
- "PaidPlanAutoRenewalCancelled",
289
- false,
290
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
291
- (0, import_transform_paths2.transformPaths)(event, [
292
- {
293
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
294
- paths: [{ path: "data.operationTimeStamp" }]
295
- }
296
- ])
297
- )
298
- )();
299
- var onAppInstancePaidPlanChanged = (0, import_sdk_types.EventDefinition)(
300
- "PaidPlanChanged",
301
- false,
302
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
303
- (0, import_transform_paths2.transformPaths)(event, [
304
- {
305
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
306
- paths: [{ path: "data.operationTimeStamp" }]
307
- }
308
- ])
309
- )
310
- )();
311
- var onAppInstancePaidPlanPurchased = (0, import_sdk_types.EventDefinition)(
312
- "PaidPlanPurchased",
313
- false,
314
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
315
- (0, import_transform_paths2.transformPaths)(event, [
316
- {
317
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
318
- paths: [
319
- { path: "data.operationTimeStamp" },
320
- { path: "data.expiresOn" }
321
- ]
322
- }
323
- ])
324
- )
325
- )();
326
- var onAppInstancePlanConvertedToPaid = (0, import_sdk_types.EventDefinition)(
327
- "PlanConvertedToPaid",
328
- false,
329
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
330
- (0, import_transform_paths2.transformPaths)(event, [
331
- {
332
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
333
- paths: [
334
- { path: "data.operationTimeStamp" },
335
- { path: "data.expiresOn" }
336
- ]
337
- }
338
- ])
339
- )
340
- )();
341
- var onAppInstancePlanReactivated = (0, import_sdk_types.EventDefinition)(
342
- "PlanReactivated",
343
- false,
344
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
345
- (0, import_transform_paths2.transformPaths)(event, [
346
- {
347
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
348
- paths: [
349
- { path: "data.operationTimeStamp" },
350
- { path: "data.expiresOn" }
351
- ]
352
- }
353
- ])
354
- )
355
- )();
356
- var onAppInstancePlanTransferred = (0, import_sdk_types.EventDefinition)(
357
- "PlanTransferred",
358
- false,
359
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
360
- (0, import_transform_paths2.transformPaths)(event, [
361
- {
362
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
363
- paths: [{ path: "data.operationTimeStamp" }]
364
- }
365
- ])
366
- )
367
- )();
368
-
369
- // src/devcenter-app-instance-v1-app-instance-app-instances.context.ts
370
- var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
371
- var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
372
- var getAppInstance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAppInstance3);
373
- var onAppInstanceInstalled2 = (0, import_event_definition_modules.createEventModule)(
374
- onAppInstanceInstalled
375
- );
376
- var onAppInstanceRemoved2 = (0, import_event_definition_modules.createEventModule)(
377
- onAppInstanceRemoved
378
- );
379
- var onAppInstancePaidPlanAutoRenewalCancelled2 = (0, import_event_definition_modules.createEventModule)(
380
- onAppInstancePaidPlanAutoRenewalCancelled
381
- );
382
- var onAppInstancePaidPlanChanged2 = (0, import_event_definition_modules.createEventModule)(
383
- onAppInstancePaidPlanChanged
384
- );
385
- var onAppInstancePaidPlanPurchased2 = (0, import_event_definition_modules.createEventModule)(
386
- onAppInstancePaidPlanPurchased
387
- );
388
- var onAppInstancePlanConvertedToPaid2 = (0, import_event_definition_modules.createEventModule)(
389
- onAppInstancePlanConvertedToPaid
390
- );
391
- var onAppInstancePlanReactivated2 = (0, import_event_definition_modules.createEventModule)(
392
- onAppInstancePlanReactivated
393
- );
394
- var onAppInstancePlanTransferred2 = (0, import_event_definition_modules.createEventModule)(
395
- onAppInstancePlanTransferred
396
- );
397
- // Annotate the CommonJS export names for ESM import in node:
398
- 0 && (module.exports = {
399
- FreeTrialPeriod,
400
- FreeTrialStatus,
401
- PaymentCycle,
402
- ReactivationReason,
403
- ResolutionMethod,
404
- WebhookIdentityType,
405
- getAppInstance,
406
- onAppInstanceInstalled,
407
- onAppInstancePaidPlanAutoRenewalCancelled,
408
- onAppInstancePaidPlanChanged,
409
- onAppInstancePaidPlanPurchased,
410
- onAppInstancePlanConvertedToPaid,
411
- onAppInstancePlanReactivated,
412
- onAppInstancePlanTransferred,
413
- onAppInstanceRemoved
414
- });
415
- //# sourceMappingURL=index.js.map