@wix/workspace 1.0.0 → 1.1.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/dist/cjs/namespaces/apps.js +4 -0
- package/dist/cjs/namespaces/apps.js.map +1 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/namespaces/apps.js +2 -0
- package/dist/esm/namespaces/apps.js.map +1 -0
- package/dist/esm/types.js.map +1 -1
- package/dist/types/namespaces/apps.d.ts +43 -0
- package/dist/types/namespaces/apps.d.ts.map +1 -0
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/namespaces/apps.ts"],"sourcesContent":["type ResponseStatus = 'SUCCESS' | 'CANCELED';\n\nexport type InstallFlowRequest = {\n appId: string;\n enablePostInstallNavigation?: boolean;\n};\n\nexport type InstallFlowResponse = {\n status: ResponseStatus;\n installedApps: {\n appId: string;\n version: string;\n }[];\n};\n\nexport type PurchasePlanFlowRequest = {\n appId: string;\n};\n\nexport type PurchasePlanFlowResponse = {\n appId: string;\n status: 'DISPATCHED' | 'NOT_INSTALLED';\n};\n\nexport type UpdateFlowRequest = {\n appId: string;\n};\n\nexport type UpdateFlowResponse = {\n status: ResponseStatus;\n installedApps: {\n appId: string;\n version: string;\n }[];\n};\n\nexport interface ContactSupportRequest {\n appId: string;\n}\n\nexport interface ContactSupportResponse {\n status: 'DISPATCHED' | 'CANCELED';\n}\n\nexport interface AppsNamespace {\n startInstallFlow: (args: InstallFlowRequest) => Promise<InstallFlowResponse>;\n startPurchasePlanFlow: (\n args: PurchasePlanFlowRequest,\n ) => Promise<PurchasePlanFlowResponse>;\n startUpdateFlow: (args: UpdateFlowRequest) => Promise<UpdateFlowResponse>;\n openContactSupport: (\n args: ContactSupportRequest,\n ) => Promise<ContactSupportResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|
package/dist/cjs/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/namespaces/apps.ts"],"sourcesContent":["type ResponseStatus = 'SUCCESS' | 'CANCELED';\n\nexport type InstallFlowRequest = {\n appId: string;\n enablePostInstallNavigation?: boolean;\n};\n\nexport type InstallFlowResponse = {\n status: ResponseStatus;\n installedApps: {\n appId: string;\n version: string;\n }[];\n};\n\nexport type PurchasePlanFlowRequest = {\n appId: string;\n};\n\nexport type PurchasePlanFlowResponse = {\n appId: string;\n status: 'DISPATCHED' | 'NOT_INSTALLED';\n};\n\nexport type UpdateFlowRequest = {\n appId: string;\n};\n\nexport type UpdateFlowResponse = {\n status: ResponseStatus;\n installedApps: {\n appId: string;\n version: string;\n }[];\n};\n\nexport interface ContactSupportRequest {\n appId: string;\n}\n\nexport interface ContactSupportResponse {\n status: 'DISPATCHED' | 'CANCELED';\n}\n\nexport interface AppsNamespace {\n startInstallFlow: (args: InstallFlowRequest) => Promise<InstallFlowResponse>;\n startPurchasePlanFlow: (\n args: PurchasePlanFlowRequest,\n ) => Promise<PurchasePlanFlowResponse>;\n startUpdateFlow: (args: UpdateFlowRequest) => Promise<UpdateFlowResponse>;\n openContactSupport: (\n args: ContactSupportRequest,\n ) => Promise<ContactSupportResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare type ResponseStatus = 'SUCCESS' | 'CANCELED';
|
|
2
|
+
export declare type InstallFlowRequest = {
|
|
3
|
+
appId: string;
|
|
4
|
+
enablePostInstallNavigation?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare type InstallFlowResponse = {
|
|
7
|
+
status: ResponseStatus;
|
|
8
|
+
installedApps: {
|
|
9
|
+
appId: string;
|
|
10
|
+
version: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
export declare type PurchasePlanFlowRequest = {
|
|
14
|
+
appId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type PurchasePlanFlowResponse = {
|
|
17
|
+
appId: string;
|
|
18
|
+
status: 'DISPATCHED' | 'NOT_INSTALLED';
|
|
19
|
+
};
|
|
20
|
+
export declare type UpdateFlowRequest = {
|
|
21
|
+
appId: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type UpdateFlowResponse = {
|
|
24
|
+
status: ResponseStatus;
|
|
25
|
+
installedApps: {
|
|
26
|
+
appId: string;
|
|
27
|
+
version: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
export interface ContactSupportRequest {
|
|
31
|
+
appId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ContactSupportResponse {
|
|
34
|
+
status: 'DISPATCHED' | 'CANCELED';
|
|
35
|
+
}
|
|
36
|
+
export interface AppsNamespace {
|
|
37
|
+
startInstallFlow: (args: InstallFlowRequest) => Promise<InstallFlowResponse>;
|
|
38
|
+
startPurchasePlanFlow: (args: PurchasePlanFlowRequest) => Promise<PurchasePlanFlowResponse>;
|
|
39
|
+
startUpdateFlow: (args: UpdateFlowRequest) => Promise<UpdateFlowResponse>;
|
|
40
|
+
openContactSupport: (args: ContactSupportRequest) => Promise<ContactSupportResponse>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/namespaces/apps.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc,GAAG,SAAS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
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Host } from '@wix/sdk-types';
|
|
2
|
+
import type { AppsNamespace } from './namespaces/apps';
|
|
2
3
|
declare type ContextIds = {
|
|
3
4
|
accountId: string;
|
|
4
5
|
userId: string;
|
|
@@ -9,6 +10,7 @@ export declare type WorkspaceHost = Host & {
|
|
|
9
10
|
workspace?: {
|
|
10
11
|
getContextIds?: () => ContextIds;
|
|
11
12
|
openItemSelector?: (...args: any[]) => any;
|
|
13
|
+
apps: AppsNamespace;
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
16
|
export declare type InternalSDK = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,aAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,GAAG;IACjC,SAAS,CAAC,EAAE;QACV,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;QACjC,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,aAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,GAAG;IACjC,SAAS,CAAC,EAAE;QACV,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;QACjC,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;QAC3C,IAAI,EAAE,aAAa,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;CAClC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/workspace",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aviv Maimon",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"wallaby": {
|
|
70
70
|
"autoDetect": true
|
|
71
71
|
},
|
|
72
|
-
"falconPackageHash": "
|
|
72
|
+
"falconPackageHash": "72503a1c74fea03e34d64fc453ab09759e646aadc6b527a124383dce"
|
|
73
73
|
}
|