@teemill/projects 1.21.0 → 1.22.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/README.md +2 -2
- package/api.ts +133 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +82 -10
- package/dist/api.js +87 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +82 -10
- package/dist/esm/api.js +86 -3
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.22.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.
|
|
39
|
+
npm install @teemill/projects@1.22.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -75,10 +75,10 @@ export interface CreateProjectRequest {
|
|
|
75
75
|
'name': string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
|
-
* @type {
|
|
78
|
+
* @type {Template}
|
|
79
79
|
* @memberof CreateProjectRequest
|
|
80
80
|
*/
|
|
81
|
-
'template'?:
|
|
81
|
+
'template'?: Template;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {object}
|
|
@@ -92,6 +92,8 @@ export interface CreateProjectRequest {
|
|
|
92
92
|
*/
|
|
93
93
|
'platformId'?: string | null;
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
|
|
95
97
|
/**
|
|
96
98
|
*
|
|
97
99
|
* @export
|
|
@@ -260,7 +262,7 @@ export interface ProjectInvite {
|
|
|
260
262
|
* @type {string}
|
|
261
263
|
* @memberof ProjectInvite
|
|
262
264
|
*/
|
|
263
|
-
'inviteeRole'?: string;
|
|
265
|
+
'inviteeRole'?: string | null;
|
|
264
266
|
/**
|
|
265
267
|
*
|
|
266
268
|
* @type {string}
|
|
@@ -452,6 +454,36 @@ export interface ProjectsResponse {
|
|
|
452
454
|
*/
|
|
453
455
|
'projects': Array<Project>;
|
|
454
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @export
|
|
460
|
+
* @enum {string}
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
export const Template = {
|
|
464
|
+
Shop: 'shop',
|
|
465
|
+
ShopHeadless: 'shop-headless',
|
|
466
|
+
ShopCommercial: 'shop-commercial',
|
|
467
|
+
Factory: 'factory',
|
|
468
|
+
Shopify: 'shopify'
|
|
469
|
+
} as const;
|
|
470
|
+
|
|
471
|
+
export type Template = typeof Template[keyof typeof Template];
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @interface TemplatesResponse
|
|
478
|
+
*/
|
|
479
|
+
export interface TemplatesResponse {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {Array<Template>}
|
|
483
|
+
* @memberof TemplatesResponse
|
|
484
|
+
*/
|
|
485
|
+
'templates': Array<Template>;
|
|
486
|
+
}
|
|
455
487
|
/**
|
|
456
488
|
*
|
|
457
489
|
* @export
|
|
@@ -928,6 +960,48 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
928
960
|
|
|
929
961
|
|
|
930
962
|
|
|
963
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
965
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
966
|
+
|
|
967
|
+
return {
|
|
968
|
+
url: toPathString(localVarUrlObj),
|
|
969
|
+
options: localVarRequestOptions,
|
|
970
|
+
};
|
|
971
|
+
},
|
|
972
|
+
/**
|
|
973
|
+
* List all templates available
|
|
974
|
+
* @summary List templates
|
|
975
|
+
* @param {string} [project] The project being accessed
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
getTemplates: async (project?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
980
|
+
const localVarPath = `/v1/projects/templates`;
|
|
981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
983
|
+
let baseOptions;
|
|
984
|
+
if (configuration) {
|
|
985
|
+
baseOptions = configuration.baseOptions;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
989
|
+
const localVarHeaderParameter = {} as any;
|
|
990
|
+
const localVarQueryParameter = {} as any;
|
|
991
|
+
|
|
992
|
+
// authentication session-oauth required
|
|
993
|
+
// oauth required
|
|
994
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
995
|
+
|
|
996
|
+
// authentication api-key required
|
|
997
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
998
|
+
|
|
999
|
+
if (project !== undefined) {
|
|
1000
|
+
localVarQueryParameter['project'] = project;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
931
1005
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
932
1006
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
933
1007
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1087,12 +1161,12 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1087
1161
|
* Install an integration template on the project
|
|
1088
1162
|
* @summary Install integration template
|
|
1089
1163
|
* @param {string} project Projects unique identifier
|
|
1090
|
-
* @param {
|
|
1164
|
+
* @param {Template} template Templates unique code
|
|
1091
1165
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
1092
1166
|
* @param {*} [options] Override http request option.
|
|
1093
1167
|
* @throws {RequiredError}
|
|
1094
1168
|
*/
|
|
1095
|
-
installTemplate: async (project: string, template:
|
|
1169
|
+
installTemplate: async (project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1096
1170
|
// verify required parameter 'project' is not null or undefined
|
|
1097
1171
|
assertParamExists('installTemplate', 'project', project)
|
|
1098
1172
|
// verify required parameter 'template' is not null or undefined
|
|
@@ -1475,6 +1549,19 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1475
1549
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getProjects']?.[localVarOperationServerIndex]?.url;
|
|
1476
1550
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1477
1551
|
},
|
|
1552
|
+
/**
|
|
1553
|
+
* List all templates available
|
|
1554
|
+
* @summary List templates
|
|
1555
|
+
* @param {string} [project] The project being accessed
|
|
1556
|
+
* @param {*} [options] Override http request option.
|
|
1557
|
+
* @throws {RequiredError}
|
|
1558
|
+
*/
|
|
1559
|
+
async getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>> {
|
|
1560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(project, options);
|
|
1561
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1562
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getTemplates']?.[localVarOperationServerIndex]?.url;
|
|
1563
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1564
|
+
},
|
|
1478
1565
|
/**
|
|
1479
1566
|
* Get a project user by id
|
|
1480
1567
|
* @summary Get a user
|
|
@@ -1523,12 +1610,12 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1523
1610
|
* Install an integration template on the project
|
|
1524
1611
|
* @summary Install integration template
|
|
1525
1612
|
* @param {string} project Projects unique identifier
|
|
1526
|
-
* @param {
|
|
1613
|
+
* @param {Template} template Templates unique code
|
|
1527
1614
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
1528
1615
|
* @param {*} [options] Override http request option.
|
|
1529
1616
|
* @throws {RequiredError}
|
|
1530
1617
|
*/
|
|
1531
|
-
async installTemplate(project: string, template:
|
|
1618
|
+
async installTemplate(project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
|
|
1532
1619
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTemplate(project, template, installTemplateRequest, options);
|
|
1533
1620
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1534
1621
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.installTemplate']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1701,6 +1788,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
1701
1788
|
getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse> {
|
|
1702
1789
|
return localVarFp.getProjects(options).then((request) => request(axios, basePath));
|
|
1703
1790
|
},
|
|
1791
|
+
/**
|
|
1792
|
+
* List all templates available
|
|
1793
|
+
* @summary List templates
|
|
1794
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
*/
|
|
1798
|
+
getTemplates(requestParameters: ProjectsApiGetTemplatesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse> {
|
|
1799
|
+
return localVarFp.getTemplates(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1800
|
+
},
|
|
1704
1801
|
/**
|
|
1705
1802
|
* Get a project user by id
|
|
1706
1803
|
* @summary Get a user
|
|
@@ -1966,6 +2063,20 @@ export interface ProjectsApiGetProjectRequest {
|
|
|
1966
2063
|
readonly project: string
|
|
1967
2064
|
}
|
|
1968
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* Request parameters for getTemplates operation in ProjectsApi.
|
|
2068
|
+
* @export
|
|
2069
|
+
* @interface ProjectsApiGetTemplatesRequest
|
|
2070
|
+
*/
|
|
2071
|
+
export interface ProjectsApiGetTemplatesRequest {
|
|
2072
|
+
/**
|
|
2073
|
+
* The project being accessed
|
|
2074
|
+
* @type {string}
|
|
2075
|
+
* @memberof ProjectsApiGetTemplates
|
|
2076
|
+
*/
|
|
2077
|
+
readonly project?: string
|
|
2078
|
+
}
|
|
2079
|
+
|
|
1969
2080
|
/**
|
|
1970
2081
|
* Request parameters for getUser operation in ProjectsApi.
|
|
1971
2082
|
* @export
|
|
@@ -2058,10 +2169,10 @@ export interface ProjectsApiInstallTemplateRequest {
|
|
|
2058
2169
|
|
|
2059
2170
|
/**
|
|
2060
2171
|
* Templates unique code
|
|
2061
|
-
* @type {
|
|
2172
|
+
* @type {Template}
|
|
2062
2173
|
* @memberof ProjectsApiInstallTemplate
|
|
2063
2174
|
*/
|
|
2064
|
-
readonly template:
|
|
2175
|
+
readonly template: Template
|
|
2065
2176
|
|
|
2066
2177
|
/**
|
|
2067
2178
|
* Request body to install template
|
|
@@ -2295,6 +2406,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2295
2406
|
return ProjectsApiFp(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
|
|
2296
2407
|
}
|
|
2297
2408
|
|
|
2409
|
+
/**
|
|
2410
|
+
* List all templates available
|
|
2411
|
+
* @summary List templates
|
|
2412
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
2413
|
+
* @param {*} [options] Override http request option.
|
|
2414
|
+
* @throws {RequiredError}
|
|
2415
|
+
* @memberof ProjectsApi
|
|
2416
|
+
*/
|
|
2417
|
+
public getTemplates(requestParameters: ProjectsApiGetTemplatesRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2418
|
+
return ProjectsApiFp(this.configuration).getTemplates(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2298
2421
|
/**
|
|
2299
2422
|
* Get a project user by id
|
|
2300
2423
|
* @summary Get a user
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -65,10 +65,10 @@ export interface CreateProjectRequest {
|
|
|
65
65
|
'name': string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {Template}
|
|
69
69
|
* @memberof CreateProjectRequest
|
|
70
70
|
*/
|
|
71
|
-
'template'?:
|
|
71
|
+
'template'?: Template;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {object}
|
|
@@ -250,7 +250,7 @@ export interface ProjectInvite {
|
|
|
250
250
|
* @type {string}
|
|
251
251
|
* @memberof ProjectInvite
|
|
252
252
|
*/
|
|
253
|
-
'inviteeRole'?: string;
|
|
253
|
+
'inviteeRole'?: string | null;
|
|
254
254
|
/**
|
|
255
255
|
*
|
|
256
256
|
* @type {string}
|
|
@@ -441,6 +441,32 @@ export interface ProjectsResponse {
|
|
|
441
441
|
*/
|
|
442
442
|
'projects': Array<Project>;
|
|
443
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @export
|
|
447
|
+
* @enum {string}
|
|
448
|
+
*/
|
|
449
|
+
export declare const Template: {
|
|
450
|
+
readonly Shop: "shop";
|
|
451
|
+
readonly ShopHeadless: "shop-headless";
|
|
452
|
+
readonly ShopCommercial: "shop-commercial";
|
|
453
|
+
readonly Factory: "factory";
|
|
454
|
+
readonly Shopify: "shopify";
|
|
455
|
+
};
|
|
456
|
+
export type Template = typeof Template[keyof typeof Template];
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @export
|
|
460
|
+
* @interface TemplatesResponse
|
|
461
|
+
*/
|
|
462
|
+
export interface TemplatesResponse {
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {Array<Template>}
|
|
466
|
+
* @memberof TemplatesResponse
|
|
467
|
+
*/
|
|
468
|
+
'templates': Array<Template>;
|
|
469
|
+
}
|
|
444
470
|
/**
|
|
445
471
|
*
|
|
446
472
|
* @export
|
|
@@ -565,6 +591,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
565
591
|
* @throws {RequiredError}
|
|
566
592
|
*/
|
|
567
593
|
getProjects: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
594
|
+
/**
|
|
595
|
+
* List all templates available
|
|
596
|
+
* @summary List templates
|
|
597
|
+
* @param {string} [project] The project being accessed
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
getTemplates: (project?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
568
602
|
/**
|
|
569
603
|
* Get a project user by id
|
|
570
604
|
* @summary Get a user
|
|
@@ -598,12 +632,12 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
598
632
|
* Install an integration template on the project
|
|
599
633
|
* @summary Install integration template
|
|
600
634
|
* @param {string} project Projects unique identifier
|
|
601
|
-
* @param {
|
|
635
|
+
* @param {Template} template Templates unique code
|
|
602
636
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
603
637
|
* @param {*} [options] Override http request option.
|
|
604
638
|
* @throws {RequiredError}
|
|
605
639
|
*/
|
|
606
|
-
installTemplate: (project: string, template:
|
|
640
|
+
installTemplate: (project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
607
641
|
/**
|
|
608
642
|
* Setup an integration on the project
|
|
609
643
|
* @summary Setup integration
|
|
@@ -735,6 +769,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
735
769
|
* @throws {RequiredError}
|
|
736
770
|
*/
|
|
737
771
|
getProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsResponse>>;
|
|
772
|
+
/**
|
|
773
|
+
* List all templates available
|
|
774
|
+
* @summary List templates
|
|
775
|
+
* @param {string} [project] The project being accessed
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>>;
|
|
738
780
|
/**
|
|
739
781
|
* Get a project user by id
|
|
740
782
|
* @summary Get a user
|
|
@@ -768,12 +810,12 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
768
810
|
* Install an integration template on the project
|
|
769
811
|
* @summary Install integration template
|
|
770
812
|
* @param {string} project Projects unique identifier
|
|
771
|
-
* @param {
|
|
813
|
+
* @param {Template} template Templates unique code
|
|
772
814
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
773
815
|
* @param {*} [options] Override http request option.
|
|
774
816
|
* @throws {RequiredError}
|
|
775
817
|
*/
|
|
776
|
-
installTemplate(project: string, template:
|
|
818
|
+
installTemplate(project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
|
|
777
819
|
/**
|
|
778
820
|
* Setup an integration on the project
|
|
779
821
|
* @summary Setup integration
|
|
@@ -897,6 +939,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
897
939
|
* @throws {RequiredError}
|
|
898
940
|
*/
|
|
899
941
|
getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse>;
|
|
942
|
+
/**
|
|
943
|
+
* List all templates available
|
|
944
|
+
* @summary List templates
|
|
945
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse>;
|
|
900
950
|
/**
|
|
901
951
|
* Get a project user by id
|
|
902
952
|
* @summary Get a user
|
|
@@ -1127,6 +1177,19 @@ export interface ProjectsApiGetProjectRequest {
|
|
|
1127
1177
|
*/
|
|
1128
1178
|
readonly project: string;
|
|
1129
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Request parameters for getTemplates operation in ProjectsApi.
|
|
1182
|
+
* @export
|
|
1183
|
+
* @interface ProjectsApiGetTemplatesRequest
|
|
1184
|
+
*/
|
|
1185
|
+
export interface ProjectsApiGetTemplatesRequest {
|
|
1186
|
+
/**
|
|
1187
|
+
* The project being accessed
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof ProjectsApiGetTemplates
|
|
1190
|
+
*/
|
|
1191
|
+
readonly project?: string;
|
|
1192
|
+
}
|
|
1130
1193
|
/**
|
|
1131
1194
|
* Request parameters for getUser operation in ProjectsApi.
|
|
1132
1195
|
* @export
|
|
@@ -1210,10 +1273,10 @@ export interface ProjectsApiInstallTemplateRequest {
|
|
|
1210
1273
|
readonly project: string;
|
|
1211
1274
|
/**
|
|
1212
1275
|
* Templates unique code
|
|
1213
|
-
* @type {
|
|
1276
|
+
* @type {Template}
|
|
1214
1277
|
* @memberof ProjectsApiInstallTemplate
|
|
1215
1278
|
*/
|
|
1216
|
-
readonly template:
|
|
1279
|
+
readonly template: Template;
|
|
1217
1280
|
/**
|
|
1218
1281
|
* Request body to install template
|
|
1219
1282
|
* @type {InstallTemplateRequest}
|
|
@@ -1405,6 +1468,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
1405
1468
|
* @memberof ProjectsApi
|
|
1406
1469
|
*/
|
|
1407
1470
|
getProjects(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectsResponse, any>>;
|
|
1471
|
+
/**
|
|
1472
|
+
* List all templates available
|
|
1473
|
+
* @summary List templates
|
|
1474
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
* @memberof ProjectsApi
|
|
1478
|
+
*/
|
|
1479
|
+
getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TemplatesResponse, any>>;
|
|
1408
1480
|
/**
|
|
1409
1481
|
* Get a project user by id
|
|
1410
1482
|
* @summary Get a user
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectUserTypeEnum = void 0;
|
|
25
|
+
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.Template = exports.ProjectUserTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -34,6 +34,18 @@ exports.ProjectUserTypeEnum = {
|
|
|
34
34
|
Service: 'service',
|
|
35
35
|
Ghost: 'ghost'
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
exports.Template = {
|
|
43
|
+
Shop: 'shop',
|
|
44
|
+
ShopHeadless: 'shop-headless',
|
|
45
|
+
ShopCommercial: 'shop-commercial',
|
|
46
|
+
Factory: 'factory',
|
|
47
|
+
Shopify: 'shopify'
|
|
48
|
+
};
|
|
37
49
|
/**
|
|
38
50
|
* ProjectsApi - axios parameter creator
|
|
39
51
|
* @export
|
|
@@ -410,6 +422,40 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
410
422
|
options: localVarRequestOptions,
|
|
411
423
|
};
|
|
412
424
|
}),
|
|
425
|
+
/**
|
|
426
|
+
* List all templates available
|
|
427
|
+
* @summary List templates
|
|
428
|
+
* @param {string} [project] The project being accessed
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
getTemplates: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
433
|
+
const localVarPath = `/v1/projects/templates`;
|
|
434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
|
+
let baseOptions;
|
|
437
|
+
if (configuration) {
|
|
438
|
+
baseOptions = configuration.baseOptions;
|
|
439
|
+
}
|
|
440
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
441
|
+
const localVarHeaderParameter = {};
|
|
442
|
+
const localVarQueryParameter = {};
|
|
443
|
+
// authentication session-oauth required
|
|
444
|
+
// oauth required
|
|
445
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
446
|
+
// authentication api-key required
|
|
447
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
448
|
+
if (project !== undefined) {
|
|
449
|
+
localVarQueryParameter['project'] = project;
|
|
450
|
+
}
|
|
451
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
454
|
+
return {
|
|
455
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
456
|
+
options: localVarRequestOptions,
|
|
457
|
+
};
|
|
458
|
+
}),
|
|
413
459
|
/**
|
|
414
460
|
* Get a project user by id
|
|
415
461
|
* @summary Get a user
|
|
@@ -536,7 +582,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
536
582
|
* Install an integration template on the project
|
|
537
583
|
* @summary Install integration template
|
|
538
584
|
* @param {string} project Projects unique identifier
|
|
539
|
-
* @param {
|
|
585
|
+
* @param {Template} template Templates unique code
|
|
540
586
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
541
587
|
* @param {*} [options] Override http request option.
|
|
542
588
|
* @throws {RequiredError}
|
|
@@ -915,6 +961,22 @@ const ProjectsApiFp = function (configuration) {
|
|
|
915
961
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
916
962
|
});
|
|
917
963
|
},
|
|
964
|
+
/**
|
|
965
|
+
* List all templates available
|
|
966
|
+
* @summary List templates
|
|
967
|
+
* @param {string} [project] The project being accessed
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
*/
|
|
971
|
+
getTemplates(project, options) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
var _a, _b, _c;
|
|
974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTemplates(project, options);
|
|
975
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
976
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
977
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
978
|
+
});
|
|
979
|
+
},
|
|
918
980
|
/**
|
|
919
981
|
* Get a project user by id
|
|
920
982
|
* @summary Get a user
|
|
@@ -972,7 +1034,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
972
1034
|
* Install an integration template on the project
|
|
973
1035
|
* @summary Install integration template
|
|
974
1036
|
* @param {string} project Projects unique identifier
|
|
975
|
-
* @param {
|
|
1037
|
+
* @param {Template} template Templates unique code
|
|
976
1038
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
977
1039
|
* @param {*} [options] Override http request option.
|
|
978
1040
|
* @throws {RequiredError}
|
|
@@ -1165,6 +1227,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1165
1227
|
getProjects(options) {
|
|
1166
1228
|
return localVarFp.getProjects(options).then((request) => request(axios, basePath));
|
|
1167
1229
|
},
|
|
1230
|
+
/**
|
|
1231
|
+
* List all templates available
|
|
1232
|
+
* @summary List templates
|
|
1233
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
*/
|
|
1237
|
+
getTemplates(requestParameters = {}, options) {
|
|
1238
|
+
return localVarFp.getTemplates(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1239
|
+
},
|
|
1168
1240
|
/**
|
|
1169
1241
|
* Get a project user by id
|
|
1170
1242
|
* @summary Get a user
|
|
@@ -1364,6 +1436,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1364
1436
|
getProjects(options) {
|
|
1365
1437
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
|
|
1366
1438
|
}
|
|
1439
|
+
/**
|
|
1440
|
+
* List all templates available
|
|
1441
|
+
* @summary List templates
|
|
1442
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1443
|
+
* @param {*} [options] Override http request option.
|
|
1444
|
+
* @throws {RequiredError}
|
|
1445
|
+
* @memberof ProjectsApi
|
|
1446
|
+
*/
|
|
1447
|
+
getTemplates(requestParameters = {}, options) {
|
|
1448
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getTemplates(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1449
|
+
}
|
|
1367
1450
|
/**
|
|
1368
1451
|
* Get a project user by id
|
|
1369
1452
|
* @summary Get a user
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -65,10 +65,10 @@ export interface CreateProjectRequest {
|
|
|
65
65
|
'name': string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {Template}
|
|
69
69
|
* @memberof CreateProjectRequest
|
|
70
70
|
*/
|
|
71
|
-
'template'?:
|
|
71
|
+
'template'?: Template;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {object}
|
|
@@ -250,7 +250,7 @@ export interface ProjectInvite {
|
|
|
250
250
|
* @type {string}
|
|
251
251
|
* @memberof ProjectInvite
|
|
252
252
|
*/
|
|
253
|
-
'inviteeRole'?: string;
|
|
253
|
+
'inviteeRole'?: string | null;
|
|
254
254
|
/**
|
|
255
255
|
*
|
|
256
256
|
* @type {string}
|
|
@@ -441,6 +441,32 @@ export interface ProjectsResponse {
|
|
|
441
441
|
*/
|
|
442
442
|
'projects': Array<Project>;
|
|
443
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @export
|
|
447
|
+
* @enum {string}
|
|
448
|
+
*/
|
|
449
|
+
export declare const Template: {
|
|
450
|
+
readonly Shop: "shop";
|
|
451
|
+
readonly ShopHeadless: "shop-headless";
|
|
452
|
+
readonly ShopCommercial: "shop-commercial";
|
|
453
|
+
readonly Factory: "factory";
|
|
454
|
+
readonly Shopify: "shopify";
|
|
455
|
+
};
|
|
456
|
+
export type Template = typeof Template[keyof typeof Template];
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @export
|
|
460
|
+
* @interface TemplatesResponse
|
|
461
|
+
*/
|
|
462
|
+
export interface TemplatesResponse {
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {Array<Template>}
|
|
466
|
+
* @memberof TemplatesResponse
|
|
467
|
+
*/
|
|
468
|
+
'templates': Array<Template>;
|
|
469
|
+
}
|
|
444
470
|
/**
|
|
445
471
|
*
|
|
446
472
|
* @export
|
|
@@ -565,6 +591,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
565
591
|
* @throws {RequiredError}
|
|
566
592
|
*/
|
|
567
593
|
getProjects: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
594
|
+
/**
|
|
595
|
+
* List all templates available
|
|
596
|
+
* @summary List templates
|
|
597
|
+
* @param {string} [project] The project being accessed
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
getTemplates: (project?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
568
602
|
/**
|
|
569
603
|
* Get a project user by id
|
|
570
604
|
* @summary Get a user
|
|
@@ -598,12 +632,12 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
598
632
|
* Install an integration template on the project
|
|
599
633
|
* @summary Install integration template
|
|
600
634
|
* @param {string} project Projects unique identifier
|
|
601
|
-
* @param {
|
|
635
|
+
* @param {Template} template Templates unique code
|
|
602
636
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
603
637
|
* @param {*} [options] Override http request option.
|
|
604
638
|
* @throws {RequiredError}
|
|
605
639
|
*/
|
|
606
|
-
installTemplate: (project: string, template:
|
|
640
|
+
installTemplate: (project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
607
641
|
/**
|
|
608
642
|
* Setup an integration on the project
|
|
609
643
|
* @summary Setup integration
|
|
@@ -735,6 +769,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
735
769
|
* @throws {RequiredError}
|
|
736
770
|
*/
|
|
737
771
|
getProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsResponse>>;
|
|
772
|
+
/**
|
|
773
|
+
* List all templates available
|
|
774
|
+
* @summary List templates
|
|
775
|
+
* @param {string} [project] The project being accessed
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>>;
|
|
738
780
|
/**
|
|
739
781
|
* Get a project user by id
|
|
740
782
|
* @summary Get a user
|
|
@@ -768,12 +810,12 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
768
810
|
* Install an integration template on the project
|
|
769
811
|
* @summary Install integration template
|
|
770
812
|
* @param {string} project Projects unique identifier
|
|
771
|
-
* @param {
|
|
813
|
+
* @param {Template} template Templates unique code
|
|
772
814
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
773
815
|
* @param {*} [options] Override http request option.
|
|
774
816
|
* @throws {RequiredError}
|
|
775
817
|
*/
|
|
776
|
-
installTemplate(project: string, template:
|
|
818
|
+
installTemplate(project: string, template: Template, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
|
|
777
819
|
/**
|
|
778
820
|
* Setup an integration on the project
|
|
779
821
|
* @summary Setup integration
|
|
@@ -897,6 +939,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
897
939
|
* @throws {RequiredError}
|
|
898
940
|
*/
|
|
899
941
|
getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse>;
|
|
942
|
+
/**
|
|
943
|
+
* List all templates available
|
|
944
|
+
* @summary List templates
|
|
945
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse>;
|
|
900
950
|
/**
|
|
901
951
|
* Get a project user by id
|
|
902
952
|
* @summary Get a user
|
|
@@ -1127,6 +1177,19 @@ export interface ProjectsApiGetProjectRequest {
|
|
|
1127
1177
|
*/
|
|
1128
1178
|
readonly project: string;
|
|
1129
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Request parameters for getTemplates operation in ProjectsApi.
|
|
1182
|
+
* @export
|
|
1183
|
+
* @interface ProjectsApiGetTemplatesRequest
|
|
1184
|
+
*/
|
|
1185
|
+
export interface ProjectsApiGetTemplatesRequest {
|
|
1186
|
+
/**
|
|
1187
|
+
* The project being accessed
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof ProjectsApiGetTemplates
|
|
1190
|
+
*/
|
|
1191
|
+
readonly project?: string;
|
|
1192
|
+
}
|
|
1130
1193
|
/**
|
|
1131
1194
|
* Request parameters for getUser operation in ProjectsApi.
|
|
1132
1195
|
* @export
|
|
@@ -1210,10 +1273,10 @@ export interface ProjectsApiInstallTemplateRequest {
|
|
|
1210
1273
|
readonly project: string;
|
|
1211
1274
|
/**
|
|
1212
1275
|
* Templates unique code
|
|
1213
|
-
* @type {
|
|
1276
|
+
* @type {Template}
|
|
1214
1277
|
* @memberof ProjectsApiInstallTemplate
|
|
1215
1278
|
*/
|
|
1216
|
-
readonly template:
|
|
1279
|
+
readonly template: Template;
|
|
1217
1280
|
/**
|
|
1218
1281
|
* Request body to install template
|
|
1219
1282
|
* @type {InstallTemplateRequest}
|
|
@@ -1405,6 +1468,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
1405
1468
|
* @memberof ProjectsApi
|
|
1406
1469
|
*/
|
|
1407
1470
|
getProjects(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectsResponse, any>>;
|
|
1471
|
+
/**
|
|
1472
|
+
* List all templates available
|
|
1473
|
+
* @summary List templates
|
|
1474
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
* @memberof ProjectsApi
|
|
1478
|
+
*/
|
|
1479
|
+
getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TemplatesResponse, any>>;
|
|
1408
1480
|
/**
|
|
1409
1481
|
* Get a project user by id
|
|
1410
1482
|
* @summary Get a user
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,6 +31,18 @@ export const ProjectUserTypeEnum = {
|
|
|
31
31
|
Service: 'service',
|
|
32
32
|
Ghost: 'ghost'
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @enum {string}
|
|
38
|
+
*/
|
|
39
|
+
export const Template = {
|
|
40
|
+
Shop: 'shop',
|
|
41
|
+
ShopHeadless: 'shop-headless',
|
|
42
|
+
ShopCommercial: 'shop-commercial',
|
|
43
|
+
Factory: 'factory',
|
|
44
|
+
Shopify: 'shopify'
|
|
45
|
+
};
|
|
34
46
|
/**
|
|
35
47
|
* ProjectsApi - axios parameter creator
|
|
36
48
|
* @export
|
|
@@ -407,6 +419,40 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
407
419
|
options: localVarRequestOptions,
|
|
408
420
|
};
|
|
409
421
|
}),
|
|
422
|
+
/**
|
|
423
|
+
* List all templates available
|
|
424
|
+
* @summary List templates
|
|
425
|
+
* @param {string} [project] The project being accessed
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
getTemplates: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
430
|
+
const localVarPath = `/v1/projects/templates`;
|
|
431
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
432
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
433
|
+
let baseOptions;
|
|
434
|
+
if (configuration) {
|
|
435
|
+
baseOptions = configuration.baseOptions;
|
|
436
|
+
}
|
|
437
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
438
|
+
const localVarHeaderParameter = {};
|
|
439
|
+
const localVarQueryParameter = {};
|
|
440
|
+
// authentication session-oauth required
|
|
441
|
+
// oauth required
|
|
442
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
443
|
+
// authentication api-key required
|
|
444
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
445
|
+
if (project !== undefined) {
|
|
446
|
+
localVarQueryParameter['project'] = project;
|
|
447
|
+
}
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
451
|
+
return {
|
|
452
|
+
url: toPathString(localVarUrlObj),
|
|
453
|
+
options: localVarRequestOptions,
|
|
454
|
+
};
|
|
455
|
+
}),
|
|
410
456
|
/**
|
|
411
457
|
* Get a project user by id
|
|
412
458
|
* @summary Get a user
|
|
@@ -533,7 +579,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
533
579
|
* Install an integration template on the project
|
|
534
580
|
* @summary Install integration template
|
|
535
581
|
* @param {string} project Projects unique identifier
|
|
536
|
-
* @param {
|
|
582
|
+
* @param {Template} template Templates unique code
|
|
537
583
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
538
584
|
* @param {*} [options] Override http request option.
|
|
539
585
|
* @throws {RequiredError}
|
|
@@ -911,6 +957,22 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
911
957
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
912
958
|
});
|
|
913
959
|
},
|
|
960
|
+
/**
|
|
961
|
+
* List all templates available
|
|
962
|
+
* @summary List templates
|
|
963
|
+
* @param {string} [project] The project being accessed
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
getTemplates(project, options) {
|
|
968
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
969
|
+
var _a, _b, _c;
|
|
970
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTemplates(project, options);
|
|
971
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
972
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.getTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
973
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
|
+
});
|
|
975
|
+
},
|
|
914
976
|
/**
|
|
915
977
|
* Get a project user by id
|
|
916
978
|
* @summary Get a user
|
|
@@ -968,7 +1030,7 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
968
1030
|
* Install an integration template on the project
|
|
969
1031
|
* @summary Install integration template
|
|
970
1032
|
* @param {string} project Projects unique identifier
|
|
971
|
-
* @param {
|
|
1033
|
+
* @param {Template} template Templates unique code
|
|
972
1034
|
* @param {InstallTemplateRequest} installTemplateRequest Request body to install template
|
|
973
1035
|
* @param {*} [options] Override http request option.
|
|
974
1036
|
* @throws {RequiredError}
|
|
@@ -1160,6 +1222,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1160
1222
|
getProjects(options) {
|
|
1161
1223
|
return localVarFp.getProjects(options).then((request) => request(axios, basePath));
|
|
1162
1224
|
},
|
|
1225
|
+
/**
|
|
1226
|
+
* List all templates available
|
|
1227
|
+
* @summary List templates
|
|
1228
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1229
|
+
* @param {*} [options] Override http request option.
|
|
1230
|
+
* @throws {RequiredError}
|
|
1231
|
+
*/
|
|
1232
|
+
getTemplates(requestParameters = {}, options) {
|
|
1233
|
+
return localVarFp.getTemplates(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1234
|
+
},
|
|
1163
1235
|
/**
|
|
1164
1236
|
* Get a project user by id
|
|
1165
1237
|
* @summary Get a user
|
|
@@ -1358,6 +1430,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
1358
1430
|
getProjects(options) {
|
|
1359
1431
|
return ProjectsApiFp(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
|
|
1360
1432
|
}
|
|
1433
|
+
/**
|
|
1434
|
+
* List all templates available
|
|
1435
|
+
* @summary List templates
|
|
1436
|
+
* @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
|
|
1437
|
+
* @param {*} [options] Override http request option.
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
* @memberof ProjectsApi
|
|
1440
|
+
*/
|
|
1441
|
+
getTemplates(requestParameters = {}, options) {
|
|
1442
|
+
return ProjectsApiFp(this.configuration).getTemplates(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1443
|
+
}
|
|
1361
1444
|
/**
|
|
1362
1445
|
* Get a project user by id
|
|
1363
1446
|
* @summary Get a user
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.22.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|