@wix/portfolio 1.0.64 → 1.0.65
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/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +5 -4
- package/type-bundles/context.bundle.d.ts +189 -42
- package/type-bundles/index.bundle.d.ts +535 -264
- package/type-bundles/meta.bundle.d.ts +369 -17
package/build/cjs/context.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/cjs/context.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections/context"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings/context"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items/context"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects/context"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections/context"));
|
package/build/cjs/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE;AAClE,qFAAqE;AACrE,4EAA4D;AAC5D,sGAAsF"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE;AAClE,+FAA+E;AAC/E,qFAAqE;AACrE,4EAA4D;AAC5D,sGAAsF"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/cjs/index.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections"));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA0D;AAC1D,6EAA6D;AAC7D,oEAAoD;AACpD,8FAA8E"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA0D;AAC1D,uFAAuE;AACvE,6EAA6D;AAC7D,oEAAoD;AACpD,8FAA8E"}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/cjs/meta.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections/meta"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings/meta"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items/meta"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects/meta"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections/meta"));
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+D;AAC/D,kFAAkE;AAClE,yEAAyD;AACzD,mGAAmF"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+D;AAC/D,4FAA4E;AAC5E,kFAAkE;AAClE,yEAAyD;AACzD,mGAAmF"}
|
package/build/es/context.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/es/context.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/es/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAC"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,iBAAiB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAC"}
|
package/build/es/meta.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/es/meta.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/es/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/portfolio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/portfolio_collections": "1.0.13",
|
|
22
|
+
"@wix/portfolio_portfolio-settings": "1.0.0",
|
|
22
23
|
"@wix/portfolio_project-in-collections": "1.0.13",
|
|
23
|
-
"@wix/portfolio_project-items": "1.0.
|
|
24
|
-
"@wix/portfolio_projects": "1.0.
|
|
24
|
+
"@wix/portfolio_project-items": "1.0.17",
|
|
25
|
+
"@wix/portfolio_projects": "1.0.16"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"fqdn": ""
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "bd0dedd8b16f11d1b6202d007393dc2d4650677ec9fb499f8a859e17"
|
|
50
51
|
}
|
|
@@ -509,17 +509,84 @@ declare const onCollectionCreated: BuildEventDefinition<typeof onCollectionCreat
|
|
|
509
509
|
declare const onCollectionUpdated: BuildEventDefinition<typeof onCollectionUpdated$1>;
|
|
510
510
|
declare const onCollectionDeleted: BuildEventDefinition<typeof onCollectionDeleted$1>;
|
|
511
511
|
|
|
512
|
-
declare const context$
|
|
513
|
-
declare const context$
|
|
514
|
-
declare const context$
|
|
515
|
-
declare const context$
|
|
516
|
-
declare const context$
|
|
517
|
-
declare const context$
|
|
518
|
-
declare const context$
|
|
519
|
-
declare const context$
|
|
520
|
-
declare const context$
|
|
512
|
+
declare const context$4_createCollection: typeof createCollection;
|
|
513
|
+
declare const context$4_deleteCollection: typeof deleteCollection;
|
|
514
|
+
declare const context$4_getCollection: typeof getCollection;
|
|
515
|
+
declare const context$4_listCollections: typeof listCollections;
|
|
516
|
+
declare const context$4_onCollectionCreated: typeof onCollectionCreated;
|
|
517
|
+
declare const context$4_onCollectionDeleted: typeof onCollectionDeleted;
|
|
518
|
+
declare const context$4_onCollectionUpdated: typeof onCollectionUpdated;
|
|
519
|
+
declare const context$4_queryCollections: typeof queryCollections;
|
|
520
|
+
declare const context$4_updateCollection: typeof updateCollection;
|
|
521
|
+
declare namespace context$4 {
|
|
522
|
+
export { context$4_createCollection as createCollection, context$4_deleteCollection as deleteCollection, context$4_getCollection as getCollection, context$4_listCollections as listCollections, context$4_onCollectionCreated as onCollectionCreated, context$4_onCollectionDeleted as onCollectionDeleted, context$4_onCollectionUpdated as onCollectionUpdated, context$4_queryCollections as queryCollections, context$4_updateCollection as updateCollection };
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
interface PortfolioSettings {
|
|
526
|
+
revision?: string | null;
|
|
527
|
+
projectItemSettings?: ProjectItemSettings;
|
|
528
|
+
mediaSettings?: MediaSettings;
|
|
529
|
+
siteMenuSettings?: SiteMenuSettings;
|
|
530
|
+
}
|
|
531
|
+
interface ProjectItemSettings {
|
|
532
|
+
addItemDirection?: AddItemDirection;
|
|
533
|
+
defaultItemName?: DefaultItemName;
|
|
534
|
+
}
|
|
535
|
+
declare enum AddItemDirection {
|
|
536
|
+
GALLERY_START = "GALLERY_START",
|
|
537
|
+
GALLERY_END = "GALLERY_END"
|
|
538
|
+
}
|
|
539
|
+
declare enum DefaultItemName {
|
|
540
|
+
FILE_NAME = "FILE_NAME",
|
|
541
|
+
EMPTY = "EMPTY"
|
|
542
|
+
}
|
|
543
|
+
interface MediaSettings {
|
|
544
|
+
folderId?: string | null;
|
|
545
|
+
}
|
|
546
|
+
interface SiteMenuSettings {
|
|
547
|
+
autoUpdateMenu?: boolean | null;
|
|
548
|
+
}
|
|
549
|
+
interface GetPortfolioSettingsResponse {
|
|
550
|
+
portfolioSettings?: PortfolioSettings;
|
|
551
|
+
}
|
|
552
|
+
interface UpdatePortfolioSettingsResponse {
|
|
553
|
+
updatedPortfolioSettings?: PortfolioSettings;
|
|
554
|
+
}
|
|
555
|
+
interface GetPortfolioSettingsResponseNonNullableFields {
|
|
556
|
+
portfolioSettings?: {
|
|
557
|
+
projectItemSettings?: {
|
|
558
|
+
addItemDirection: AddItemDirection;
|
|
559
|
+
defaultItemName: DefaultItemName;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
564
|
+
updatedPortfolioSettings?: {
|
|
565
|
+
projectItemSettings?: {
|
|
566
|
+
addItemDirection: AddItemDirection;
|
|
567
|
+
defaultItemName: DefaultItemName;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare function createPortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
573
|
+
projectItemSettings?: {
|
|
574
|
+
addItemDirection: AddItemDirection;
|
|
575
|
+
defaultItemName: DefaultItemName;
|
|
576
|
+
} | undefined;
|
|
577
|
+
}>;
|
|
578
|
+
declare function getPortfolioSettings$1(httpClient: HttpClient): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
579
|
+
declare function updatePortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
580
|
+
|
|
581
|
+
declare const createPortfolioSettings: BuildRESTFunction<typeof createPortfolioSettings$1>;
|
|
582
|
+
declare const getPortfolioSettings: BuildRESTFunction<typeof getPortfolioSettings$1>;
|
|
583
|
+
declare const updatePortfolioSettings: BuildRESTFunction<typeof updatePortfolioSettings$1>;
|
|
584
|
+
|
|
585
|
+
declare const context$3_createPortfolioSettings: typeof createPortfolioSettings;
|
|
586
|
+
declare const context$3_getPortfolioSettings: typeof getPortfolioSettings;
|
|
587
|
+
declare const context$3_updatePortfolioSettings: typeof updatePortfolioSettings;
|
|
521
588
|
declare namespace context$3 {
|
|
522
|
-
export { context$
|
|
589
|
+
export { context$3_createPortfolioSettings as createPortfolioSettings, context$3_getPortfolioSettings as getPortfolioSettings, context$3_updatePortfolioSettings as updatePortfolioSettings };
|
|
523
590
|
}
|
|
524
591
|
|
|
525
592
|
/** ProjectItem is the main entity of ProjectItemsService */
|
|
@@ -612,6 +679,45 @@ interface Link {
|
|
|
612
679
|
*/
|
|
613
680
|
target?: string | null;
|
|
614
681
|
}
|
|
682
|
+
interface GenerateTokenForProjectItemsResponse {
|
|
683
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
684
|
+
}
|
|
685
|
+
interface ProjectItemMediaToken {
|
|
686
|
+
/** Media id of project item */
|
|
687
|
+
mediaId?: string;
|
|
688
|
+
/** Generated media token for project item */
|
|
689
|
+
mediaToken?: string;
|
|
690
|
+
}
|
|
691
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
692
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
693
|
+
anonymousVisitorId?: string;
|
|
694
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
695
|
+
memberId?: string;
|
|
696
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
697
|
+
wixUserId?: string;
|
|
698
|
+
/** ID of an app. */
|
|
699
|
+
appId?: string;
|
|
700
|
+
/** @readonly */
|
|
701
|
+
identityType?: WebhookIdentityType$2;
|
|
702
|
+
}
|
|
703
|
+
/** @oneof */
|
|
704
|
+
interface IdentificationDataIdOneOf$2 {
|
|
705
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
706
|
+
anonymousVisitorId?: string;
|
|
707
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
708
|
+
memberId?: string;
|
|
709
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
710
|
+
wixUserId?: string;
|
|
711
|
+
/** ID of an app. */
|
|
712
|
+
appId?: string;
|
|
713
|
+
}
|
|
714
|
+
declare enum WebhookIdentityType$2 {
|
|
715
|
+
UNKNOWN = "UNKNOWN",
|
|
716
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
717
|
+
MEMBER = "MEMBER",
|
|
718
|
+
WIX_USER = "WIX_USER",
|
|
719
|
+
APP = "APP"
|
|
720
|
+
}
|
|
615
721
|
interface BulkCreateProjectItemsResponse {
|
|
616
722
|
/** Array with all created items results. */
|
|
617
723
|
results?: BulkCreateProjectItemResult[];
|
|
@@ -722,35 +828,11 @@ interface DuplicateProjectItemsResponse {
|
|
|
722
828
|
/** Result metadata */
|
|
723
829
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
724
830
|
}
|
|
725
|
-
interface
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
731
|
-
wixUserId?: string;
|
|
732
|
-
/** ID of an app. */
|
|
733
|
-
appId?: string;
|
|
734
|
-
/** @readonly */
|
|
735
|
-
identityType?: WebhookIdentityType$2;
|
|
736
|
-
}
|
|
737
|
-
/** @oneof */
|
|
738
|
-
interface IdentificationDataIdOneOf$2 {
|
|
739
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
740
|
-
anonymousVisitorId?: string;
|
|
741
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
742
|
-
memberId?: string;
|
|
743
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
744
|
-
wixUserId?: string;
|
|
745
|
-
/** ID of an app. */
|
|
746
|
-
appId?: string;
|
|
747
|
-
}
|
|
748
|
-
declare enum WebhookIdentityType$2 {
|
|
749
|
-
UNKNOWN = "UNKNOWN",
|
|
750
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
751
|
-
MEMBER = "MEMBER",
|
|
752
|
-
WIX_USER = "WIX_USER",
|
|
753
|
-
APP = "APP"
|
|
831
|
+
interface GenerateTokenForProjectItemsResponseNonNullableFields {
|
|
832
|
+
mediaTokens: {
|
|
833
|
+
mediaId: string;
|
|
834
|
+
mediaToken: string;
|
|
835
|
+
}[];
|
|
754
836
|
}
|
|
755
837
|
interface BulkCreateProjectItemsResponseNonNullableFields {
|
|
756
838
|
results: {
|
|
@@ -984,6 +1066,7 @@ interface DuplicateProjectItemsOptions {
|
|
|
984
1066
|
targetProjectId: string;
|
|
985
1067
|
}
|
|
986
1068
|
|
|
1069
|
+
declare function generateTokenForProjectItems$1(httpClient: HttpClient): (mediaIds: string[]) => Promise<GenerateTokenForProjectItemsResponse & GenerateTokenForProjectItemsResponseNonNullableFields>;
|
|
987
1070
|
declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
988
1071
|
image?: {
|
|
989
1072
|
imageInfo: string;
|
|
@@ -1033,6 +1116,7 @@ declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope
|
|
|
1033
1116
|
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1034
1117
|
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1035
1118
|
|
|
1119
|
+
declare const generateTokenForProjectItems: BuildRESTFunction<typeof generateTokenForProjectItems$1>;
|
|
1036
1120
|
declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1>;
|
|
1037
1121
|
declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1>;
|
|
1038
1122
|
declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1>;
|
|
@@ -1052,6 +1136,7 @@ declare const context$2_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
|
1052
1136
|
declare const context$2_createProjectItem: typeof createProjectItem;
|
|
1053
1137
|
declare const context$2_deleteProjectItem: typeof deleteProjectItem;
|
|
1054
1138
|
declare const context$2_duplicateProjectItems: typeof duplicateProjectItems;
|
|
1139
|
+
declare const context$2_generateTokenForProjectItems: typeof generateTokenForProjectItems;
|
|
1055
1140
|
declare const context$2_getProjectItem: typeof getProjectItem;
|
|
1056
1141
|
declare const context$2_listProjectItems: typeof listProjectItems;
|
|
1057
1142
|
declare const context$2_onProjectItemCreated: typeof onProjectItemCreated;
|
|
@@ -1059,7 +1144,7 @@ declare const context$2_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
|
1059
1144
|
declare const context$2_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
1060
1145
|
declare const context$2_updateProjectItem: typeof updateProjectItem;
|
|
1061
1146
|
declare namespace context$2 {
|
|
1062
|
-
export { context$2_bulkCreateProjectItems as bulkCreateProjectItems, context$2_bulkDeleteProjectItems as bulkDeleteProjectItems, context$2_bulkUpdateProjectItems as bulkUpdateProjectItems, context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_duplicateProjectItems as duplicateProjectItems, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
|
|
1147
|
+
export { context$2_bulkCreateProjectItems as bulkCreateProjectItems, context$2_bulkDeleteProjectItems as bulkDeleteProjectItems, context$2_bulkUpdateProjectItems as bulkUpdateProjectItems, context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_duplicateProjectItems as duplicateProjectItems, context$2_generateTokenForProjectItems as generateTokenForProjectItems, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
|
|
1063
1148
|
}
|
|
1064
1149
|
|
|
1065
1150
|
/** Project is the main entity of ProjectsService */
|
|
@@ -1205,6 +1290,16 @@ interface Settings$1 {
|
|
|
1205
1290
|
/** User-selected keyword terms for a specific page. */
|
|
1206
1291
|
keywords?: Keyword$1[];
|
|
1207
1292
|
}
|
|
1293
|
+
interface GetProjectPageDataResponse {
|
|
1294
|
+
project?: Project$1;
|
|
1295
|
+
previousProject?: ProjectSlug;
|
|
1296
|
+
nextProject?: ProjectSlug;
|
|
1297
|
+
}
|
|
1298
|
+
interface ProjectSlug {
|
|
1299
|
+
/** Project id */
|
|
1300
|
+
projectId?: string;
|
|
1301
|
+
slug?: string;
|
|
1302
|
+
}
|
|
1208
1303
|
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
1209
1304
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1210
1305
|
anonymousVisitorId?: string;
|
|
@@ -1379,6 +1474,49 @@ interface QueryProjectWithCollectionInfoResponse {
|
|
|
1379
1474
|
/** Paging metadata */
|
|
1380
1475
|
metadata?: PagingMetadataV2;
|
|
1381
1476
|
}
|
|
1477
|
+
interface GetProjectPageDataResponseNonNullableFields {
|
|
1478
|
+
project?: {
|
|
1479
|
+
coverImage?: {
|
|
1480
|
+
imageInfo: string;
|
|
1481
|
+
focalPoint?: {
|
|
1482
|
+
x: number;
|
|
1483
|
+
y: number;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
coverVideo?: {
|
|
1487
|
+
videoInfo: string;
|
|
1488
|
+
};
|
|
1489
|
+
collectionIds: string[];
|
|
1490
|
+
details: {
|
|
1491
|
+
text: string;
|
|
1492
|
+
label: string;
|
|
1493
|
+
}[];
|
|
1494
|
+
url: string;
|
|
1495
|
+
seoData?: {
|
|
1496
|
+
tags: {
|
|
1497
|
+
type: string;
|
|
1498
|
+
children: string;
|
|
1499
|
+
custom: boolean;
|
|
1500
|
+
disabled: boolean;
|
|
1501
|
+
}[];
|
|
1502
|
+
settings?: {
|
|
1503
|
+
preventAutoRedirect: boolean;
|
|
1504
|
+
keywords: {
|
|
1505
|
+
term: string;
|
|
1506
|
+
isMain: boolean;
|
|
1507
|
+
}[];
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
previousProject?: {
|
|
1512
|
+
projectId: string;
|
|
1513
|
+
slug: string;
|
|
1514
|
+
};
|
|
1515
|
+
nextProject?: {
|
|
1516
|
+
projectId: string;
|
|
1517
|
+
slug: string;
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1382
1520
|
interface ListProjectsResponseNonNullableFields {
|
|
1383
1521
|
projects: {
|
|
1384
1522
|
coverImage?: {
|
|
@@ -1600,6 +1738,12 @@ interface ProjectUpdatedEnvelope {
|
|
|
1600
1738
|
interface ProjectDeletedEnvelope {
|
|
1601
1739
|
metadata: EventMetadata$1;
|
|
1602
1740
|
}
|
|
1741
|
+
interface GetProjectPageDataIdentifiers {
|
|
1742
|
+
/** Slug of the project's current collection */
|
|
1743
|
+
collectionSlug: string;
|
|
1744
|
+
/** Project's slug */
|
|
1745
|
+
projectSlug: string;
|
|
1746
|
+
}
|
|
1603
1747
|
interface GetProjectOptions {
|
|
1604
1748
|
includePageUrl?: boolean | null;
|
|
1605
1749
|
}
|
|
@@ -1754,6 +1898,7 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
1754
1898
|
includePageUrl?: boolean | null;
|
|
1755
1899
|
}
|
|
1756
1900
|
|
|
1901
|
+
declare function getProjectPageData$1(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
1757
1902
|
declare function createProject$1(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
1758
1903
|
coverImage?: {
|
|
1759
1904
|
imageInfo: string;
|
|
@@ -1863,6 +2008,7 @@ declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.p
|
|
|
1863
2008
|
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
1864
2009
|
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
1865
2010
|
|
|
2011
|
+
declare const getProjectPageData: BuildRESTFunction<typeof getProjectPageData$1>;
|
|
1866
2012
|
declare const createProject: BuildRESTFunction<typeof createProject$1>;
|
|
1867
2013
|
declare const getProject: BuildRESTFunction<typeof getProject$1>;
|
|
1868
2014
|
declare const listProjects: BuildRESTFunction<typeof listProjects$1>;
|
|
@@ -1880,6 +2026,7 @@ declare const context$1_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
|
1880
2026
|
declare const context$1_createProject: typeof createProject;
|
|
1881
2027
|
declare const context$1_deleteProject: typeof deleteProject;
|
|
1882
2028
|
declare const context$1_getProject: typeof getProject;
|
|
2029
|
+
declare const context$1_getProjectPageData: typeof getProjectPageData;
|
|
1883
2030
|
declare const context$1_listProjects: typeof listProjects;
|
|
1884
2031
|
declare const context$1_onProjectCreated: typeof onProjectCreated;
|
|
1885
2032
|
declare const context$1_onProjectDeleted: typeof onProjectDeleted;
|
|
@@ -1888,7 +2035,7 @@ declare const context$1_queryProjects: typeof queryProjects;
|
|
|
1888
2035
|
declare const context$1_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
1889
2036
|
declare const context$1_updateProject: typeof updateProject;
|
|
1890
2037
|
declare namespace context$1 {
|
|
1891
|
-
export { context$1_bulkUpdateProjects as bulkUpdateProjects, context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$1_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
2038
|
+
export { context$1_bulkUpdateProjects as bulkUpdateProjects, context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_getProjectPageData as getProjectPageData, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$1_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
1892
2039
|
}
|
|
1893
2040
|
|
|
1894
2041
|
interface ProjectInCollection {
|
|
@@ -2280,4 +2427,4 @@ declare namespace context {
|
|
|
2280
2427
|
export { context_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, context_queryProjectInCollections as queryProjectInCollections, context_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
2281
2428
|
}
|
|
2282
2429
|
|
|
2283
|
-
export { context$
|
|
2430
|
+
export { context$4 as collections, context$3 as portfolioSettings, context as projectInCollections, context$2 as projectItems, context$1 as projects };
|