@wix/auto_sdk_multilingual_translation-credits 1.0.0
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.d.ts +6 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.js +14 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.d.ts +11 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.js +94 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.d.ts +14 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.js +66 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.d.ts +25 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.js +24 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.d.ts +370 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.js +112 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.d.ts +392 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.js +204 -0
- package/build/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.context.d.ts +6 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.context.js +6 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.context.js.map +1 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.http.d.ts +11 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.http.js +89 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.http.js.map +1 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.d.ts +14 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.js +38 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.js.map +1 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.public.d.ts +25 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js +14 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js.map +1 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.types.d.ts +370 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.types.js +109 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.types.js.map +1 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.d.ts +392 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.js +176 -0
- package/build/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.d.ts +6 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.js +14 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.context.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.d.ts +11 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.js +94 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.http.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.d.ts +14 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.js +66 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.d.ts +25 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.js +24 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.public.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.d.ts +370 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.js +112 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.types.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.d.ts +392 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.js +204 -0
- package/build/internal/cjs/src/multilingual-machine-v1-credit-data-translation-credits.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.context.d.ts +6 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.context.js +6 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.context.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.http.d.ts +11 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.http.js +89 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.http.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.d.ts +14 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.js +38 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.d.ts +25 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js +14 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.types.d.ts +370 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.types.js +109 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.types.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.d.ts +392 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.js +176 -0
- package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.http.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves a site's word credit data.
|
|
4
|
+
*
|
|
5
|
+
* For sites with a limited quota, you can calculate the available word credits by subtracting the credits used from the quota.
|
|
6
|
+
* For example, if a site has a quota of 100 credits and all credits have been used (`"creditsUsed": 100`), the available word credits will be 0.
|
|
7
|
+
* If a Wix user purchases an additional 50 credits, the `quota` will increase to `150`, and the site will have 50 available word credits.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCreditData(payload: object): RequestOptionsFactory<any>;
|
|
10
|
+
/** Checks whether a site has enough credits to translate the specified number of words. */
|
|
11
|
+
export declare function checkSufficientCredits(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
function resolveWixMultilingualMachineV1TranslationCreditsUrl(opts) {
|
|
4
|
+
const domainToMappings = {
|
|
5
|
+
'editor._base_domain_': [
|
|
6
|
+
{
|
|
7
|
+
srcPath: '/_api/translation-credits/v1',
|
|
8
|
+
destPath: '/v1',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
'blocks._base_domain_': [
|
|
12
|
+
{
|
|
13
|
+
srcPath: '/_api/translation-credits/v1',
|
|
14
|
+
destPath: '/v1',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
'create.editorx': [
|
|
18
|
+
{
|
|
19
|
+
srcPath: '/_api/translation-credits/v1',
|
|
20
|
+
destPath: '/v1',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
'manage._base_domain_': [
|
|
24
|
+
{
|
|
25
|
+
srcPath: '/_api/translation-credits/v1',
|
|
26
|
+
destPath: '/v1',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
'www.wixapis.com': [
|
|
30
|
+
{
|
|
31
|
+
srcPath: '/translation-credits/v1',
|
|
32
|
+
destPath: '/v1',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
'*.dev.wix-code.com': [
|
|
36
|
+
{
|
|
37
|
+
srcPath: '/_api/translation-credits/v1',
|
|
38
|
+
destPath: '/v1',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
};
|
|
42
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
43
|
+
}
|
|
44
|
+
const PACKAGE_NAME = '@wix/auto_sdk_multilingual_translation-credits';
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves a site's word credit data.
|
|
47
|
+
*
|
|
48
|
+
* For sites with a limited quota, you can calculate the available word credits by subtracting the credits used from the quota.
|
|
49
|
+
* For example, if a site has a quota of 100 credits and all credits have been used (`"creditsUsed": 100`), the available word credits will be 0.
|
|
50
|
+
* If a Wix user purchases an additional 50 credits, the `quota` will increase to `150`, and the site will have 50 available word credits.
|
|
51
|
+
*/
|
|
52
|
+
export function getCreditData(payload) {
|
|
53
|
+
function __getCreditData({ host }) {
|
|
54
|
+
const metadata = {
|
|
55
|
+
entityFqdn: 'wix.multilingual.machine.v1.credit_data',
|
|
56
|
+
method: 'GET',
|
|
57
|
+
methodFqn: 'wix.multilingual.machine.v1.TranslationCredits.GetCreditData',
|
|
58
|
+
packageName: PACKAGE_NAME,
|
|
59
|
+
url: resolveWixMultilingualMachineV1TranslationCreditsUrl({
|
|
60
|
+
protoPath: '/v1/credit',
|
|
61
|
+
data: payload,
|
|
62
|
+
host,
|
|
63
|
+
}),
|
|
64
|
+
params: toURLSearchParams(payload),
|
|
65
|
+
};
|
|
66
|
+
return metadata;
|
|
67
|
+
}
|
|
68
|
+
return __getCreditData;
|
|
69
|
+
}
|
|
70
|
+
/** Checks whether a site has enough credits to translate the specified number of words. */
|
|
71
|
+
export function checkSufficientCredits(payload) {
|
|
72
|
+
function __checkSufficientCredits({ host }) {
|
|
73
|
+
const metadata = {
|
|
74
|
+
entityFqdn: 'wix.multilingual.machine.v1.credit_data',
|
|
75
|
+
method: 'POST',
|
|
76
|
+
methodFqn: 'wix.multilingual.machine.v1.TranslationCredits.CheckSufficientCredits',
|
|
77
|
+
packageName: PACKAGE_NAME,
|
|
78
|
+
url: resolveWixMultilingualMachineV1TranslationCreditsUrl({
|
|
79
|
+
protoPath: '/v1/credit/is-eligible',
|
|
80
|
+
data: payload,
|
|
81
|
+
host,
|
|
82
|
+
}),
|
|
83
|
+
data: payload,
|
|
84
|
+
};
|
|
85
|
+
return metadata;
|
|
86
|
+
}
|
|
87
|
+
return __checkSufficientCredits;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=multilingual-machine-v1-credit-data-translation-credits.http.js.map
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.http.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multilingual-machine-v1-credit-data-translation-credits.http.js","sourceRoot":"","sources":["../../../../src/multilingual-machine-v1-credit-data-translation-credits.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,oDAAoD,CAC3D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,gDAAgD,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,yCAAyC;YACrD,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,8DAA8D;YACzE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,oDAAoD,CAAC;gBACxD,SAAS,EAAE,YAAY;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,sBAAsB,CACpC,OAAe;IAEf,SAAS,wBAAwB,CAAC,EAAE,IAAI,EAAO;QAC7C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,yCAAyC;YACrD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,uEAAuE;YACzE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,oDAAoD,CAAC;gBACxD,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC"}
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ambassadorWixMultilingualMachineV1CreditDataTypes from './multilingual-machine-v1-credit-data-translation-credits.types.js';
|
|
2
|
+
import * as ambassadorWixMultilingualMachineV1CreditDataUniversalTypes from './multilingual-machine-v1-credit-data-translation-credits.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 getCreditData(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.GetCreditDataRequest, ambassadorWixMultilingualMachineV1CreditDataTypes.GetCreditDataRequest, ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.GetCreditDataResponse & ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.GetCreditDataResponseNonNullableFields, ambassadorWixMultilingualMachineV1CreditDataTypes.GetCreditDataResponse & ambassadorWixMultilingualMachineV1CreditDataTypes.GetCreditDataResponseNonNullableFields>;
|
|
14
|
+
export declare function checkSufficientCredits(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.CheckSufficientCreditsRequest, ambassadorWixMultilingualMachineV1CreditDataTypes.CheckSufficientCreditsRequest, ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.CheckSufficientCreditsResponse & ambassadorWixMultilingualMachineV1CreditDataUniversalTypes.CheckSufficientCreditsResponseNonNullableFields, ambassadorWixMultilingualMachineV1CreditDataTypes.CheckSufficientCreditsResponse & ambassadorWixMultilingualMachineV1CreditDataTypes.CheckSufficientCreditsResponseNonNullableFields>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as ambassadorWixMultilingualMachineV1CreditData from './multilingual-machine-v1-credit-data-translation-credits.http.js';
|
|
2
|
+
export function getCreditData() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixMultilingualMachineV1CreditData.getCreditData(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'GET',
|
|
12
|
+
path: '/v1/credit',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function checkSufficientCredits() {
|
|
21
|
+
const payload = {};
|
|
22
|
+
const getRequestOptions = ambassadorWixMultilingualMachineV1CreditData.checkSufficientCredits(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'POST',
|
|
30
|
+
path: '/v1/credit/is-eligible',
|
|
31
|
+
pathParams: {},
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=multilingual-machine-v1-credit-data-translation-credits.meta.js.map
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.meta.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multilingual-machine-v1-credit-data-translation-credits.meta.js","sourceRoot":"","sources":["../../../../src/multilingual-machine-v1-credit-data-translation-credits.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,4CAA4C,MAAM,mEAAmE,CAAC;AAsBlI,MAAM,UAAU,aAAa;IAU3B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAEtE,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,YAAY;QAClB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB;IAUpC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,sBAAsB,CACjE,OAAO,CACR,CAAC;IAEJ,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,MAAM;QAClB,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CheckSufficientCreditsResponse, CheckSufficientCreditsResponseNonNullableFields, GetCreditDataResponse, GetCreditDataResponseNonNullableFields } from './multilingual-machine-v1-credit-data-translation-credits.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getCreditData(httpClient: HttpClient): GetCreditDataSignature;
|
|
7
|
+
interface GetCreditDataSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a site's word credit data.
|
|
10
|
+
*
|
|
11
|
+
* For sites with a limited quota, you can calculate the available word credits by subtracting the credits used from the quota.
|
|
12
|
+
* For example, if a site has a quota of 100 credits and all credits have been used (`"creditsUsed": 100`), the available word credits will be 0.
|
|
13
|
+
* If a Wix user purchases an additional 50 credits, the `quota` will increase to `150`, and the site will have 50 available word credits.
|
|
14
|
+
*/
|
|
15
|
+
(): Promise<GetCreditDataResponse & GetCreditDataResponseNonNullableFields>;
|
|
16
|
+
}
|
|
17
|
+
export declare function checkSufficientCredits(httpClient: HttpClient): CheckSufficientCreditsSignature;
|
|
18
|
+
interface CheckSufficientCreditsSignature {
|
|
19
|
+
/**
|
|
20
|
+
* Checks whether a site has enough credits to translate the specified number of words.
|
|
21
|
+
* @param - Number of words to translate.
|
|
22
|
+
*/
|
|
23
|
+
(wordCount: number): Promise<CheckSufficientCreditsResponse & CheckSufficientCreditsResponseNonNullableFields>;
|
|
24
|
+
}
|
|
25
|
+
export { Asset, CheckSufficientCreditsRequest, CheckSufficientCreditsResponse, CheckSufficientCreditsResponseNonNullableFields, CreditData, CreditDataTypeOneOf, DeleteContext, DeleteStatus, Empty, GetCreditDataRequest, GetCreditDataResponse, GetCreditDataResponseNonNullableFields, LimitedQuota, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, Quota, ReportCreditUsageRequest, ReportCreditUsageResponse, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, State, StudioAssigned, StudioUnassigned, UpdateCreditRequest, UpdateCreditResponse, } from './multilingual-machine-v1-credit-data-translation-credits.universal.js';
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { checkSufficientCredits as universalCheckSufficientCredits, getCreditData as universalGetCreditData, } from './multilingual-machine-v1-credit-data-translation-credits.universal.js';
|
|
2
|
+
export const __metadata = { PACKAGE_NAME: '@wix/multilingual' };
|
|
3
|
+
export function getCreditData(httpClient) {
|
|
4
|
+
return () => universalGetCreditData(
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
{ httpClient });
|
|
7
|
+
}
|
|
8
|
+
export function checkSufficientCredits(httpClient) {
|
|
9
|
+
return (wordCount) => universalCheckSufficientCredits(wordCount,
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
{ httpClient });
|
|
12
|
+
}
|
|
13
|
+
export { DeleteStatus, Namespace, Quota, SiteCreatedContext, State, } from './multilingual-machine-v1-credit-data-translation-credits.universal.js';
|
|
14
|
+
//# sourceMappingURL=multilingual-machine-v1-credit-data-translation-credits.public.js.map
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.public.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multilingual-machine-v1-credit-data-translation-credits.public.js","sourceRoot":"","sources":["../../../../src/multilingual-machine-v1-credit-data-translation-credits.public.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,sBAAsB,IAAI,+BAA+B,EACzD,aAAa,IAAI,sBAAsB,GACxC,MAAM,wEAAwE,CAAC;AAEhF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEhE,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,sBAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,MAAM,UAAU,sBAAsB,CACpC,UAAsB;IAEtB,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,+BAA+B,CAC7B,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,OAAO,EAQL,YAAY,EAQZ,SAAS,EAET,KAAK,EAML,kBAAkB,EAUlB,KAAK,GAKN,MAAM,wEAAwE,CAAC"}
|
package/build/internal/es/src/multilingual-machine-v1-credit-data-translation-credits.types.d.ts
ADDED
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
export interface CreditData extends CreditDataTypeOneOf {
|
|
2
|
+
/**
|
|
3
|
+
* Limited word credit quota.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
limitedQuota?: LimitedQuota;
|
|
7
|
+
/** Total number of word credits consumed by a site. For sites with an unlimited word credit quota, this property still reflects the number of credits used, even though no usage limit applies. */
|
|
8
|
+
creditsUsed?: number | null;
|
|
9
|
+
/** Quota type. */
|
|
10
|
+
quotaType?: Quota;
|
|
11
|
+
}
|
|
12
|
+
/** @oneof */
|
|
13
|
+
export interface CreditDataTypeOneOf {
|
|
14
|
+
/**
|
|
15
|
+
* Limited word credit quota.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
limitedQuota?: LimitedQuota;
|
|
19
|
+
}
|
|
20
|
+
export declare enum Quota {
|
|
21
|
+
UNKNOWN = "UNKNOWN",
|
|
22
|
+
/** Limited word credit quota. */
|
|
23
|
+
LIMITED = "LIMITED"
|
|
24
|
+
}
|
|
25
|
+
export interface LimitedQuota {
|
|
26
|
+
/** Total word credit allocation for the site, which includes the initial quota and any additional credits purchased through the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager), regardless of usage. */
|
|
27
|
+
quota?: number | null;
|
|
28
|
+
}
|
|
29
|
+
export interface GetCreditDataRequest {
|
|
30
|
+
}
|
|
31
|
+
export interface GetCreditDataResponse {
|
|
32
|
+
/** Credit data. */
|
|
33
|
+
creditData?: CreditData;
|
|
34
|
+
}
|
|
35
|
+
export interface CheckSufficientCreditsRequest {
|
|
36
|
+
/** Number of words to translate. */
|
|
37
|
+
wordCount: number;
|
|
38
|
+
}
|
|
39
|
+
export interface CheckSufficientCreditsResponse {
|
|
40
|
+
/** Whether the site has enough credits to translate the specified number of words. */
|
|
41
|
+
sufficientCredits?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface ReportCreditUsageRequest {
|
|
44
|
+
/** Number of credits used in the translation operation */
|
|
45
|
+
used?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ReportCreditUsageResponse {
|
|
48
|
+
/** Updated credit status after reporting usage */
|
|
49
|
+
creditData?: CreditData;
|
|
50
|
+
}
|
|
51
|
+
export interface UpdateCreditRequest {
|
|
52
|
+
/** New credit status to be set for the site */
|
|
53
|
+
creditData?: CreditData;
|
|
54
|
+
}
|
|
55
|
+
export interface UpdateCreditResponse {
|
|
56
|
+
/** Updated credit status after the change */
|
|
57
|
+
creditData?: CreditData;
|
|
58
|
+
}
|
|
59
|
+
export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
60
|
+
/** Emitted on a meta site creation. */
|
|
61
|
+
siteCreated?: SiteCreated;
|
|
62
|
+
/** Emitted on a meta site transfer completion. */
|
|
63
|
+
siteTransferred?: SiteTransferred;
|
|
64
|
+
/** Emitted on a meta site deletion. */
|
|
65
|
+
siteDeleted?: SiteDeleted;
|
|
66
|
+
/** Emitted on a meta site restoration. */
|
|
67
|
+
siteUndeleted?: SiteUndeleted;
|
|
68
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
69
|
+
sitePublished?: SitePublished;
|
|
70
|
+
/** Emitted on a meta site unpublish. */
|
|
71
|
+
siteUnpublished?: SiteUnpublished;
|
|
72
|
+
/** Emitted when meta site is marked as template. */
|
|
73
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
74
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
75
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
76
|
+
/** Emitted when an application is provisioned (installed). */
|
|
77
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
78
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
79
|
+
serviceRemoved?: ServiceRemoved;
|
|
80
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
81
|
+
siteRenamedPayload?: SiteRenamed;
|
|
82
|
+
/** Emitted when meta site was permanently deleted. */
|
|
83
|
+
hardDeleted?: SiteHardDeleted;
|
|
84
|
+
/** Emitted on a namespace change. */
|
|
85
|
+
namespaceChanged?: NamespaceChanged;
|
|
86
|
+
/** Emitted when Studio is attached. */
|
|
87
|
+
studioAssigned?: StudioAssigned;
|
|
88
|
+
/** Emitted when Studio is detached. */
|
|
89
|
+
studioUnassigned?: StudioUnassigned;
|
|
90
|
+
/** A meta site id. */
|
|
91
|
+
metaSiteId?: string;
|
|
92
|
+
/** A meta site version. Monotonically increasing. */
|
|
93
|
+
version?: string;
|
|
94
|
+
/** A timestamp of the event. */
|
|
95
|
+
timestamp?: string;
|
|
96
|
+
/**
|
|
97
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
98
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
99
|
+
*/
|
|
100
|
+
assets?: Asset[];
|
|
101
|
+
}
|
|
102
|
+
/** @oneof */
|
|
103
|
+
export interface MetaSiteSpecialEventPayloadOneOf {
|
|
104
|
+
/** Emitted on a meta site creation. */
|
|
105
|
+
siteCreated?: SiteCreated;
|
|
106
|
+
/** Emitted on a meta site transfer completion. */
|
|
107
|
+
siteTransferred?: SiteTransferred;
|
|
108
|
+
/** Emitted on a meta site deletion. */
|
|
109
|
+
siteDeleted?: SiteDeleted;
|
|
110
|
+
/** Emitted on a meta site restoration. */
|
|
111
|
+
siteUndeleted?: SiteUndeleted;
|
|
112
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
113
|
+
sitePublished?: SitePublished;
|
|
114
|
+
/** Emitted on a meta site unpublish. */
|
|
115
|
+
siteUnpublished?: SiteUnpublished;
|
|
116
|
+
/** Emitted when meta site is marked as template. */
|
|
117
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
118
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
119
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
120
|
+
/** Emitted when an application is provisioned (installed). */
|
|
121
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
122
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
123
|
+
serviceRemoved?: ServiceRemoved;
|
|
124
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
125
|
+
siteRenamedPayload?: SiteRenamed;
|
|
126
|
+
/** Emitted when meta site was permanently deleted. */
|
|
127
|
+
hardDeleted?: SiteHardDeleted;
|
|
128
|
+
/** Emitted on a namespace change. */
|
|
129
|
+
namespaceChanged?: NamespaceChanged;
|
|
130
|
+
/** Emitted when Studio is attached. */
|
|
131
|
+
studioAssigned?: StudioAssigned;
|
|
132
|
+
/** Emitted when Studio is detached. */
|
|
133
|
+
studioUnassigned?: StudioUnassigned;
|
|
134
|
+
}
|
|
135
|
+
export interface Asset {
|
|
136
|
+
/** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
|
|
137
|
+
appDefId?: string;
|
|
138
|
+
/** An instance id. For legacy reasons may be UUID or a string. */
|
|
139
|
+
instanceId?: string;
|
|
140
|
+
/** An application state. */
|
|
141
|
+
state?: State;
|
|
142
|
+
}
|
|
143
|
+
export declare enum State {
|
|
144
|
+
UNKNOWN = "UNKNOWN",
|
|
145
|
+
ENABLED = "ENABLED",
|
|
146
|
+
DISABLED = "DISABLED",
|
|
147
|
+
PENDING = "PENDING",
|
|
148
|
+
DEMO = "DEMO"
|
|
149
|
+
}
|
|
150
|
+
export interface SiteCreated {
|
|
151
|
+
/** A template identifier (empty if not created from a template). */
|
|
152
|
+
originTemplateId?: string;
|
|
153
|
+
/** An account id of the owner. */
|
|
154
|
+
ownerId?: string;
|
|
155
|
+
/** A context in which meta site was created. */
|
|
156
|
+
context?: SiteCreatedContext;
|
|
157
|
+
/**
|
|
158
|
+
* A meta site id from which this site was created.
|
|
159
|
+
*
|
|
160
|
+
* In case of a creation from a template it's a template id.
|
|
161
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
162
|
+
*/
|
|
163
|
+
originMetaSiteId?: string | null;
|
|
164
|
+
/** A meta site name (URL slug). */
|
|
165
|
+
siteName?: string;
|
|
166
|
+
/** A namespace. */
|
|
167
|
+
namespace?: Namespace;
|
|
168
|
+
}
|
|
169
|
+
export declare enum SiteCreatedContext {
|
|
170
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
171
|
+
OTHER = "OTHER",
|
|
172
|
+
/** A meta site was created from template. */
|
|
173
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
174
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
175
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
176
|
+
/** A copy of existing meta site. */
|
|
177
|
+
DUPLICATE = "DUPLICATE",
|
|
178
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
179
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
180
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
181
|
+
FLASH = "FLASH"
|
|
182
|
+
}
|
|
183
|
+
export declare enum Namespace {
|
|
184
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
185
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
186
|
+
WIX = "WIX",
|
|
187
|
+
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
188
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
189
|
+
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
190
|
+
ALBUMS = "ALBUMS",
|
|
191
|
+
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
192
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
193
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
194
|
+
HOTELS = "HOTELS",
|
|
195
|
+
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
196
|
+
CLUBS = "CLUBS",
|
|
197
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
198
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
199
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
200
|
+
DEV_SITE = "DEV_SITE",
|
|
201
|
+
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
202
|
+
LOGOS = "LOGOS",
|
|
203
|
+
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
204
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
205
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
206
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
207
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
208
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
209
|
+
/**
|
|
210
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
211
|
+
*
|
|
212
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
213
|
+
*/
|
|
214
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
215
|
+
/**
|
|
216
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
217
|
+
* Will be accessible from Site List and will not have a website app.
|
|
218
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
219
|
+
*/
|
|
220
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
221
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
222
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
223
|
+
/** It is to be used in the Business First efforts. */
|
|
224
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
225
|
+
/** Bookings business flow with no site. */
|
|
226
|
+
ANYWHERE = "ANYWHERE",
|
|
227
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
228
|
+
HEADLESS = "HEADLESS",
|
|
229
|
+
/**
|
|
230
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
231
|
+
* The site will be used for account level CSM feature for enterprise
|
|
232
|
+
*/
|
|
233
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
234
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
235
|
+
RISE = "RISE",
|
|
236
|
+
/**
|
|
237
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
238
|
+
* There's a blank site behind the scene but it's blank).
|
|
239
|
+
* The Mobile company will be the owner of this namespace.
|
|
240
|
+
*/
|
|
241
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
242
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
243
|
+
NOWNIA = "NOWNIA",
|
|
244
|
+
/**
|
|
245
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
246
|
+
* The Partners company owns this namespace.
|
|
247
|
+
*/
|
|
248
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
249
|
+
/** Codux Headless Sites */
|
|
250
|
+
CODUX = "CODUX",
|
|
251
|
+
/** Bobb - AI Design Creator. */
|
|
252
|
+
MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR"
|
|
253
|
+
}
|
|
254
|
+
/** Site transferred to another user. */
|
|
255
|
+
export interface SiteTransferred {
|
|
256
|
+
/** A previous owner id (user that transfers meta site). */
|
|
257
|
+
oldOwnerId?: string;
|
|
258
|
+
/** A new owner id (user that accepts meta site). */
|
|
259
|
+
newOwnerId?: string;
|
|
260
|
+
}
|
|
261
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
262
|
+
export interface SiteDeleted {
|
|
263
|
+
/** A deletion context. */
|
|
264
|
+
deleteContext?: DeleteContext;
|
|
265
|
+
}
|
|
266
|
+
export interface DeleteContext {
|
|
267
|
+
/** When the meta site was deleted. */
|
|
268
|
+
dateDeleted?: Date | null;
|
|
269
|
+
/** A status. */
|
|
270
|
+
deleteStatus?: DeleteStatus;
|
|
271
|
+
/** A reason (flow). */
|
|
272
|
+
deleteOrigin?: string;
|
|
273
|
+
/** A service that deleted it. */
|
|
274
|
+
initiatorId?: string | null;
|
|
275
|
+
}
|
|
276
|
+
export declare enum DeleteStatus {
|
|
277
|
+
UNKNOWN = "UNKNOWN",
|
|
278
|
+
TRASH = "TRASH",
|
|
279
|
+
DELETED = "DELETED",
|
|
280
|
+
PENDING_PURGE = "PENDING_PURGE"
|
|
281
|
+
}
|
|
282
|
+
/** Restoration of the meta site. */
|
|
283
|
+
export interface SiteUndeleted {
|
|
284
|
+
}
|
|
285
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
286
|
+
export interface SitePublished {
|
|
287
|
+
}
|
|
288
|
+
export interface SiteUnpublished {
|
|
289
|
+
/** A list of URLs previously associated with the meta site. */
|
|
290
|
+
urls?: string[];
|
|
291
|
+
}
|
|
292
|
+
export interface SiteMarkedAsTemplate {
|
|
293
|
+
}
|
|
294
|
+
export interface SiteMarkedAsWixSite {
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Represents a service provisioned a site.
|
|
298
|
+
*
|
|
299
|
+
* Note on `origin_instance_id`:
|
|
300
|
+
* There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
|
|
301
|
+
* This is because of the following scenario:
|
|
302
|
+
*
|
|
303
|
+
* Imagine you have a template where a third-party application (TPA) includes some stub data,
|
|
304
|
+
* such as a product catalog. When you create a site from this template, you inherit this
|
|
305
|
+
* default product catalog. However, if the template's product catalog is modified,
|
|
306
|
+
* your site will retain the catalog as it was at the time of site creation. This ensures that
|
|
307
|
+
* your site remains consistent with what you initially received and does not include any
|
|
308
|
+
* changes made to the original template afterward.
|
|
309
|
+
* To ensure this, the TPA on the template gets a new instance_id.
|
|
310
|
+
*/
|
|
311
|
+
export interface ServiceProvisioned {
|
|
312
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
313
|
+
appDefId?: string;
|
|
314
|
+
/** Not only UUID. Something here could be something weird. */
|
|
315
|
+
instanceId?: string;
|
|
316
|
+
/** An instance id from which this instance is originated. */
|
|
317
|
+
originInstanceId?: string;
|
|
318
|
+
/** A version. */
|
|
319
|
+
version?: string | null;
|
|
320
|
+
/** The origin meta site id */
|
|
321
|
+
originMetaSiteId?: string | null;
|
|
322
|
+
}
|
|
323
|
+
export interface ServiceRemoved {
|
|
324
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
325
|
+
appDefId?: string;
|
|
326
|
+
/** Not only UUID. Something here could be something weird. */
|
|
327
|
+
instanceId?: string;
|
|
328
|
+
/** A version. */
|
|
329
|
+
version?: string | null;
|
|
330
|
+
}
|
|
331
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
332
|
+
export interface SiteRenamed {
|
|
333
|
+
/** A new meta site name (URL slug). */
|
|
334
|
+
newSiteName?: string;
|
|
335
|
+
/** A previous meta site name (URL slug). */
|
|
336
|
+
oldSiteName?: string;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Hard deletion of the meta site.
|
|
340
|
+
*
|
|
341
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
342
|
+
*/
|
|
343
|
+
export interface SiteHardDeleted {
|
|
344
|
+
/** A deletion context. */
|
|
345
|
+
deleteContext?: DeleteContext;
|
|
346
|
+
}
|
|
347
|
+
export interface NamespaceChanged {
|
|
348
|
+
/** A previous namespace. */
|
|
349
|
+
oldNamespace?: Namespace;
|
|
350
|
+
/** A new namespace. */
|
|
351
|
+
newNamespace?: Namespace;
|
|
352
|
+
}
|
|
353
|
+
/** Assigned Studio editor */
|
|
354
|
+
export interface StudioAssigned {
|
|
355
|
+
}
|
|
356
|
+
/** Unassigned Studio editor */
|
|
357
|
+
export interface StudioUnassigned {
|
|
358
|
+
}
|
|
359
|
+
export interface Empty {
|
|
360
|
+
}
|
|
361
|
+
interface CreditDataNonNullableFields {
|
|
362
|
+
quotaType: Quota;
|
|
363
|
+
}
|
|
364
|
+
export interface GetCreditDataResponseNonNullableFields {
|
|
365
|
+
creditData?: CreditDataNonNullableFields;
|
|
366
|
+
}
|
|
367
|
+
export interface CheckSufficientCreditsResponseNonNullableFields {
|
|
368
|
+
sufficientCredits: boolean;
|
|
369
|
+
}
|
|
370
|
+
export {};
|