@teemill/projects 1.21.1 → 1.23.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.21.1
1
+ ## @teemill/projects@1.23.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.21.1 --save
39
+ npm install @teemill/projects@1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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 {string}
78
+ * @type {TemplateCode}
79
79
  * @memberof CreateProjectRequest
80
80
  */
81
- 'template'?: string;
81
+ 'template'?: TemplateCode;
82
82
  /**
83
83
  *
84
84
  * @type {object}
@@ -92,6 +92,33 @@ export interface CreateProjectRequest {
92
92
  */
93
93
  'platformId'?: string | null;
94
94
  }
95
+
96
+
97
+ /**
98
+ *
99
+ * @export
100
+ * @interface Icon
101
+ */
102
+ export interface Icon {
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof Icon
107
+ */
108
+ 'prefix': string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof Icon
113
+ */
114
+ 'iconName': string;
115
+ /**
116
+ *
117
+ * @type {Array<any>}
118
+ * @memberof Icon
119
+ */
120
+ 'icon': Array<any>;
121
+ }
95
122
  /**
96
123
  *
97
124
  * @export
@@ -452,6 +479,75 @@ export interface ProjectsResponse {
452
479
  */
453
480
  'projects': Array<Project>;
454
481
  }
482
+ /**
483
+ *
484
+ * @export
485
+ * @interface Template
486
+ */
487
+ export interface Template {
488
+ /**
489
+ *
490
+ * @type {string}
491
+ * @memberof Template
492
+ */
493
+ 'name'?: string;
494
+ /**
495
+ *
496
+ * @type {string}
497
+ * @memberof Template
498
+ */
499
+ 'description'?: string;
500
+ /**
501
+ *
502
+ * @type {TemplateCode}
503
+ * @memberof Template
504
+ */
505
+ 'code'?: TemplateCode;
506
+ /**
507
+ *
508
+ * @type {boolean}
509
+ * @memberof Template
510
+ */
511
+ 'highlighted'?: boolean;
512
+ /**
513
+ *
514
+ * @type {Icon}
515
+ * @memberof Template
516
+ */
517
+ 'icon'?: Icon;
518
+ }
519
+
520
+
521
+ /**
522
+ *
523
+ * @export
524
+ * @enum {string}
525
+ */
526
+
527
+ export const TemplateCode = {
528
+ Shop: 'shop',
529
+ ShopHeadless: 'shop-headless',
530
+ ShopCommercial: 'shop-commercial',
531
+ Factory: 'factory',
532
+ Shopify: 'shopify'
533
+ } as const;
534
+
535
+ export type TemplateCode = typeof TemplateCode[keyof typeof TemplateCode];
536
+
537
+
538
+ /**
539
+ *
540
+ * @export
541
+ * @interface TemplatesResponse
542
+ */
543
+ export interface TemplatesResponse {
544
+ /**
545
+ *
546
+ * @type {Array<Template>}
547
+ * @memberof TemplatesResponse
548
+ */
549
+ 'templates': Array<Template>;
550
+ }
455
551
  /**
456
552
  *
457
553
  * @export
@@ -928,6 +1024,48 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
928
1024
 
929
1025
 
930
1026
 
1027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1029
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1030
+
1031
+ return {
1032
+ url: toPathString(localVarUrlObj),
1033
+ options: localVarRequestOptions,
1034
+ };
1035
+ },
1036
+ /**
1037
+ * List all templates available
1038
+ * @summary List templates
1039
+ * @param {string} [project] The project being accessed
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ getTemplates: async (project?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1044
+ const localVarPath = `/v1/projects/templates`;
1045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1046
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1047
+ let baseOptions;
1048
+ if (configuration) {
1049
+ baseOptions = configuration.baseOptions;
1050
+ }
1051
+
1052
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1053
+ const localVarHeaderParameter = {} as any;
1054
+ const localVarQueryParameter = {} as any;
1055
+
1056
+ // authentication session-oauth required
1057
+ // oauth required
1058
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1059
+
1060
+ // authentication api-key required
1061
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1062
+
1063
+ if (project !== undefined) {
1064
+ localVarQueryParameter['project'] = project;
1065
+ }
1066
+
1067
+
1068
+
931
1069
  setSearchParams(localVarUrlObj, localVarQueryParameter);
932
1070
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
933
1071
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1087,12 +1225,12 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
1087
1225
  * Install an integration template on the project
1088
1226
  * @summary Install integration template
1089
1227
  * @param {string} project Projects unique identifier
1090
- * @param {string} template Templates unique code
1228
+ * @param {TemplateCode} template Templates unique code
1091
1229
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
1092
1230
  * @param {*} [options] Override http request option.
1093
1231
  * @throws {RequiredError}
1094
1232
  */
1095
- installTemplate: async (project: string, template: string, installTemplateRequest: InstallTemplateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1233
+ installTemplate: async (project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1096
1234
  // verify required parameter 'project' is not null or undefined
1097
1235
  assertParamExists('installTemplate', 'project', project)
1098
1236
  // verify required parameter 'template' is not null or undefined
@@ -1475,6 +1613,19 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
1475
1613
  const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getProjects']?.[localVarOperationServerIndex]?.url;
1476
1614
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1477
1615
  },
1616
+ /**
1617
+ * List all templates available
1618
+ * @summary List templates
1619
+ * @param {string} [project] The project being accessed
1620
+ * @param {*} [options] Override http request option.
1621
+ * @throws {RequiredError}
1622
+ */
1623
+ async getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>> {
1624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(project, options);
1625
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1626
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getTemplates']?.[localVarOperationServerIndex]?.url;
1627
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1628
+ },
1478
1629
  /**
1479
1630
  * Get a project user by id
1480
1631
  * @summary Get a user
@@ -1523,12 +1674,12 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
1523
1674
  * Install an integration template on the project
1524
1675
  * @summary Install integration template
1525
1676
  * @param {string} project Projects unique identifier
1526
- * @param {string} template Templates unique code
1677
+ * @param {TemplateCode} template Templates unique code
1527
1678
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
1528
1679
  * @param {*} [options] Override http request option.
1529
1680
  * @throws {RequiredError}
1530
1681
  */
1531
- async installTemplate(project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
1682
+ async installTemplate(project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
1532
1683
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTemplate(project, template, installTemplateRequest, options);
1533
1684
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1534
1685
  const localVarOperationServerBasePath = operationServerMap['ProjectsApi.installTemplate']?.[localVarOperationServerIndex]?.url;
@@ -1701,6 +1852,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
1701
1852
  getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse> {
1702
1853
  return localVarFp.getProjects(options).then((request) => request(axios, basePath));
1703
1854
  },
1855
+ /**
1856
+ * List all templates available
1857
+ * @summary List templates
1858
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ */
1862
+ getTemplates(requestParameters: ProjectsApiGetTemplatesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse> {
1863
+ return localVarFp.getTemplates(requestParameters.project, options).then((request) => request(axios, basePath));
1864
+ },
1704
1865
  /**
1705
1866
  * Get a project user by id
1706
1867
  * @summary Get a user
@@ -1966,6 +2127,20 @@ export interface ProjectsApiGetProjectRequest {
1966
2127
  readonly project: string
1967
2128
  }
1968
2129
 
2130
+ /**
2131
+ * Request parameters for getTemplates operation in ProjectsApi.
2132
+ * @export
2133
+ * @interface ProjectsApiGetTemplatesRequest
2134
+ */
2135
+ export interface ProjectsApiGetTemplatesRequest {
2136
+ /**
2137
+ * The project being accessed
2138
+ * @type {string}
2139
+ * @memberof ProjectsApiGetTemplates
2140
+ */
2141
+ readonly project?: string
2142
+ }
2143
+
1969
2144
  /**
1970
2145
  * Request parameters for getUser operation in ProjectsApi.
1971
2146
  * @export
@@ -2058,10 +2233,10 @@ export interface ProjectsApiInstallTemplateRequest {
2058
2233
 
2059
2234
  /**
2060
2235
  * Templates unique code
2061
- * @type {string}
2236
+ * @type {TemplateCode}
2062
2237
  * @memberof ProjectsApiInstallTemplate
2063
2238
  */
2064
- readonly template: string
2239
+ readonly template: TemplateCode
2065
2240
 
2066
2241
  /**
2067
2242
  * Request body to install template
@@ -2295,6 +2470,18 @@ export class ProjectsApi extends BaseAPI {
2295
2470
  return ProjectsApiFp(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
2296
2471
  }
2297
2472
 
2473
+ /**
2474
+ * List all templates available
2475
+ * @summary List templates
2476
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
2477
+ * @param {*} [options] Override http request option.
2478
+ * @throws {RequiredError}
2479
+ * @memberof ProjectsApi
2480
+ */
2481
+ public getTemplates(requestParameters: ProjectsApiGetTemplatesRequest = {}, options?: RawAxiosRequestConfig) {
2482
+ return ProjectsApiFp(this.configuration).getTemplates(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2483
+ }
2484
+
2298
2485
  /**
2299
2486
  * Get a project user by id
2300
2487
  * @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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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 {string}
68
+ * @type {TemplateCode}
69
69
  * @memberof CreateProjectRequest
70
70
  */
71
- 'template'?: string;
71
+ 'template'?: TemplateCode;
72
72
  /**
73
73
  *
74
74
  * @type {object}
@@ -82,6 +82,31 @@ export interface CreateProjectRequest {
82
82
  */
83
83
  'platformId'?: string | null;
84
84
  }
85
+ /**
86
+ *
87
+ * @export
88
+ * @interface Icon
89
+ */
90
+ export interface Icon {
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof Icon
95
+ */
96
+ 'prefix': string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof Icon
101
+ */
102
+ 'iconName': string;
103
+ /**
104
+ *
105
+ * @type {Array<any>}
106
+ * @memberof Icon
107
+ */
108
+ 'icon': Array<any>;
109
+ }
85
110
  /**
86
111
  *
87
112
  * @export
@@ -441,6 +466,69 @@ export interface ProjectsResponse {
441
466
  */
442
467
  'projects': Array<Project>;
443
468
  }
469
+ /**
470
+ *
471
+ * @export
472
+ * @interface Template
473
+ */
474
+ export interface Template {
475
+ /**
476
+ *
477
+ * @type {string}
478
+ * @memberof Template
479
+ */
480
+ 'name'?: string;
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof Template
485
+ */
486
+ 'description'?: string;
487
+ /**
488
+ *
489
+ * @type {TemplateCode}
490
+ * @memberof Template
491
+ */
492
+ 'code'?: TemplateCode;
493
+ /**
494
+ *
495
+ * @type {boolean}
496
+ * @memberof Template
497
+ */
498
+ 'highlighted'?: boolean;
499
+ /**
500
+ *
501
+ * @type {Icon}
502
+ * @memberof Template
503
+ */
504
+ 'icon'?: Icon;
505
+ }
506
+ /**
507
+ *
508
+ * @export
509
+ * @enum {string}
510
+ */
511
+ export declare const TemplateCode: {
512
+ readonly Shop: "shop";
513
+ readonly ShopHeadless: "shop-headless";
514
+ readonly ShopCommercial: "shop-commercial";
515
+ readonly Factory: "factory";
516
+ readonly Shopify: "shopify";
517
+ };
518
+ export type TemplateCode = typeof TemplateCode[keyof typeof TemplateCode];
519
+ /**
520
+ *
521
+ * @export
522
+ * @interface TemplatesResponse
523
+ */
524
+ export interface TemplatesResponse {
525
+ /**
526
+ *
527
+ * @type {Array<Template>}
528
+ * @memberof TemplatesResponse
529
+ */
530
+ 'templates': Array<Template>;
531
+ }
444
532
  /**
445
533
  *
446
534
  * @export
@@ -565,6 +653,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
565
653
  * @throws {RequiredError}
566
654
  */
567
655
  getProjects: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
656
+ /**
657
+ * List all templates available
658
+ * @summary List templates
659
+ * @param {string} [project] The project being accessed
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ getTemplates: (project?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
568
664
  /**
569
665
  * Get a project user by id
570
666
  * @summary Get a user
@@ -598,12 +694,12 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
598
694
  * Install an integration template on the project
599
695
  * @summary Install integration template
600
696
  * @param {string} project Projects unique identifier
601
- * @param {string} template Templates unique code
697
+ * @param {TemplateCode} template Templates unique code
602
698
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
603
699
  * @param {*} [options] Override http request option.
604
700
  * @throws {RequiredError}
605
701
  */
606
- installTemplate: (project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
702
+ installTemplate: (project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
607
703
  /**
608
704
  * Setup an integration on the project
609
705
  * @summary Setup integration
@@ -735,6 +831,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
735
831
  * @throws {RequiredError}
736
832
  */
737
833
  getProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsResponse>>;
834
+ /**
835
+ * List all templates available
836
+ * @summary List templates
837
+ * @param {string} [project] The project being accessed
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>>;
738
842
  /**
739
843
  * Get a project user by id
740
844
  * @summary Get a user
@@ -768,12 +872,12 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
768
872
  * Install an integration template on the project
769
873
  * @summary Install integration template
770
874
  * @param {string} project Projects unique identifier
771
- * @param {string} template Templates unique code
875
+ * @param {TemplateCode} template Templates unique code
772
876
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
773
877
  * @param {*} [options] Override http request option.
774
878
  * @throws {RequiredError}
775
879
  */
776
- installTemplate(project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
880
+ installTemplate(project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
777
881
  /**
778
882
  * Setup an integration on the project
779
883
  * @summary Setup integration
@@ -897,6 +1001,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
897
1001
  * @throws {RequiredError}
898
1002
  */
899
1003
  getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse>;
1004
+ /**
1005
+ * List all templates available
1006
+ * @summary List templates
1007
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse>;
900
1012
  /**
901
1013
  * Get a project user by id
902
1014
  * @summary Get a user
@@ -1127,6 +1239,19 @@ export interface ProjectsApiGetProjectRequest {
1127
1239
  */
1128
1240
  readonly project: string;
1129
1241
  }
1242
+ /**
1243
+ * Request parameters for getTemplates operation in ProjectsApi.
1244
+ * @export
1245
+ * @interface ProjectsApiGetTemplatesRequest
1246
+ */
1247
+ export interface ProjectsApiGetTemplatesRequest {
1248
+ /**
1249
+ * The project being accessed
1250
+ * @type {string}
1251
+ * @memberof ProjectsApiGetTemplates
1252
+ */
1253
+ readonly project?: string;
1254
+ }
1130
1255
  /**
1131
1256
  * Request parameters for getUser operation in ProjectsApi.
1132
1257
  * @export
@@ -1210,10 +1335,10 @@ export interface ProjectsApiInstallTemplateRequest {
1210
1335
  readonly project: string;
1211
1336
  /**
1212
1337
  * Templates unique code
1213
- * @type {string}
1338
+ * @type {TemplateCode}
1214
1339
  * @memberof ProjectsApiInstallTemplate
1215
1340
  */
1216
- readonly template: string;
1341
+ readonly template: TemplateCode;
1217
1342
  /**
1218
1343
  * Request body to install template
1219
1344
  * @type {InstallTemplateRequest}
@@ -1405,6 +1530,15 @@ export declare class ProjectsApi extends BaseAPI {
1405
1530
  * @memberof ProjectsApi
1406
1531
  */
1407
1532
  getProjects(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectsResponse, any>>;
1533
+ /**
1534
+ * List all templates available
1535
+ * @summary List templates
1536
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
1537
+ * @param {*} [options] Override http request option.
1538
+ * @throws {RequiredError}
1539
+ * @memberof ProjectsApi
1540
+ */
1541
+ getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TemplatesResponse, any>>;
1408
1542
  /**
1409
1543
  * Get a project user by id
1410
1544
  * @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.21.1
8
+ * The version of the OpenAPI document: 1.23.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.TemplateCode = 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.TemplateCode = {
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 {string} template Templates unique code
585
+ * @param {TemplateCode} 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 {string} template Templates unique code
1037
+ * @param {TemplateCode} 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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
8
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
8
+ * The version of the OpenAPI document: 1.23.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * 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.21.1
5
+ * The version of the OpenAPI document: 1.23.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.21.1
8
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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 {string}
68
+ * @type {TemplateCode}
69
69
  * @memberof CreateProjectRequest
70
70
  */
71
- 'template'?: string;
71
+ 'template'?: TemplateCode;
72
72
  /**
73
73
  *
74
74
  * @type {object}
@@ -82,6 +82,31 @@ export interface CreateProjectRequest {
82
82
  */
83
83
  'platformId'?: string | null;
84
84
  }
85
+ /**
86
+ *
87
+ * @export
88
+ * @interface Icon
89
+ */
90
+ export interface Icon {
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof Icon
95
+ */
96
+ 'prefix': string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof Icon
101
+ */
102
+ 'iconName': string;
103
+ /**
104
+ *
105
+ * @type {Array<any>}
106
+ * @memberof Icon
107
+ */
108
+ 'icon': Array<any>;
109
+ }
85
110
  /**
86
111
  *
87
112
  * @export
@@ -441,6 +466,69 @@ export interface ProjectsResponse {
441
466
  */
442
467
  'projects': Array<Project>;
443
468
  }
469
+ /**
470
+ *
471
+ * @export
472
+ * @interface Template
473
+ */
474
+ export interface Template {
475
+ /**
476
+ *
477
+ * @type {string}
478
+ * @memberof Template
479
+ */
480
+ 'name'?: string;
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof Template
485
+ */
486
+ 'description'?: string;
487
+ /**
488
+ *
489
+ * @type {TemplateCode}
490
+ * @memberof Template
491
+ */
492
+ 'code'?: TemplateCode;
493
+ /**
494
+ *
495
+ * @type {boolean}
496
+ * @memberof Template
497
+ */
498
+ 'highlighted'?: boolean;
499
+ /**
500
+ *
501
+ * @type {Icon}
502
+ * @memberof Template
503
+ */
504
+ 'icon'?: Icon;
505
+ }
506
+ /**
507
+ *
508
+ * @export
509
+ * @enum {string}
510
+ */
511
+ export declare const TemplateCode: {
512
+ readonly Shop: "shop";
513
+ readonly ShopHeadless: "shop-headless";
514
+ readonly ShopCommercial: "shop-commercial";
515
+ readonly Factory: "factory";
516
+ readonly Shopify: "shopify";
517
+ };
518
+ export type TemplateCode = typeof TemplateCode[keyof typeof TemplateCode];
519
+ /**
520
+ *
521
+ * @export
522
+ * @interface TemplatesResponse
523
+ */
524
+ export interface TemplatesResponse {
525
+ /**
526
+ *
527
+ * @type {Array<Template>}
528
+ * @memberof TemplatesResponse
529
+ */
530
+ 'templates': Array<Template>;
531
+ }
444
532
  /**
445
533
  *
446
534
  * @export
@@ -565,6 +653,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
565
653
  * @throws {RequiredError}
566
654
  */
567
655
  getProjects: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
656
+ /**
657
+ * List all templates available
658
+ * @summary List templates
659
+ * @param {string} [project] The project being accessed
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ getTemplates: (project?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
568
664
  /**
569
665
  * Get a project user by id
570
666
  * @summary Get a user
@@ -598,12 +694,12 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
598
694
  * Install an integration template on the project
599
695
  * @summary Install integration template
600
696
  * @param {string} project Projects unique identifier
601
- * @param {string} template Templates unique code
697
+ * @param {TemplateCode} template Templates unique code
602
698
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
603
699
  * @param {*} [options] Override http request option.
604
700
  * @throws {RequiredError}
605
701
  */
606
- installTemplate: (project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
702
+ installTemplate: (project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
607
703
  /**
608
704
  * Setup an integration on the project
609
705
  * @summary Setup integration
@@ -735,6 +831,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
735
831
  * @throws {RequiredError}
736
832
  */
737
833
  getProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsResponse>>;
834
+ /**
835
+ * List all templates available
836
+ * @summary List templates
837
+ * @param {string} [project] The project being accessed
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ getTemplates(project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplatesResponse>>;
738
842
  /**
739
843
  * Get a project user by id
740
844
  * @summary Get a user
@@ -768,12 +872,12 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
768
872
  * Install an integration template on the project
769
873
  * @summary Install integration template
770
874
  * @param {string} project Projects unique identifier
771
- * @param {string} template Templates unique code
875
+ * @param {TemplateCode} template Templates unique code
772
876
  * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
773
877
  * @param {*} [options] Override http request option.
774
878
  * @throws {RequiredError}
775
879
  */
776
- installTemplate(project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
880
+ installTemplate(project: string, template: TemplateCode, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>>;
777
881
  /**
778
882
  * Setup an integration on the project
779
883
  * @summary Setup integration
@@ -897,6 +1001,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
897
1001
  * @throws {RequiredError}
898
1002
  */
899
1003
  getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse>;
1004
+ /**
1005
+ * List all templates available
1006
+ * @summary List templates
1007
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemplatesResponse>;
900
1012
  /**
901
1013
  * Get a project user by id
902
1014
  * @summary Get a user
@@ -1127,6 +1239,19 @@ export interface ProjectsApiGetProjectRequest {
1127
1239
  */
1128
1240
  readonly project: string;
1129
1241
  }
1242
+ /**
1243
+ * Request parameters for getTemplates operation in ProjectsApi.
1244
+ * @export
1245
+ * @interface ProjectsApiGetTemplatesRequest
1246
+ */
1247
+ export interface ProjectsApiGetTemplatesRequest {
1248
+ /**
1249
+ * The project being accessed
1250
+ * @type {string}
1251
+ * @memberof ProjectsApiGetTemplates
1252
+ */
1253
+ readonly project?: string;
1254
+ }
1130
1255
  /**
1131
1256
  * Request parameters for getUser operation in ProjectsApi.
1132
1257
  * @export
@@ -1210,10 +1335,10 @@ export interface ProjectsApiInstallTemplateRequest {
1210
1335
  readonly project: string;
1211
1336
  /**
1212
1337
  * Templates unique code
1213
- * @type {string}
1338
+ * @type {TemplateCode}
1214
1339
  * @memberof ProjectsApiInstallTemplate
1215
1340
  */
1216
- readonly template: string;
1341
+ readonly template: TemplateCode;
1217
1342
  /**
1218
1343
  * Request body to install template
1219
1344
  * @type {InstallTemplateRequest}
@@ -1405,6 +1530,15 @@ export declare class ProjectsApi extends BaseAPI {
1405
1530
  * @memberof ProjectsApi
1406
1531
  */
1407
1532
  getProjects(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectsResponse, any>>;
1533
+ /**
1534
+ * List all templates available
1535
+ * @summary List templates
1536
+ * @param {ProjectsApiGetTemplatesRequest} requestParameters Request parameters.
1537
+ * @param {*} [options] Override http request option.
1538
+ * @throws {RequiredError}
1539
+ * @memberof ProjectsApi
1540
+ */
1541
+ getTemplates(requestParameters?: ProjectsApiGetTemplatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TemplatesResponse, any>>;
1408
1542
  /**
1409
1543
  * Get a project user by id
1410
1544
  * @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.21.1
7
+ * The version of the OpenAPI document: 1.23.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 TemplateCode = {
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 {string} template Templates unique code
582
+ * @param {TemplateCode} 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 {string} template Templates unique code
1033
+ * @param {TemplateCode} 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
@@ -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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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.21.1
5
+ * The version of the OpenAPI document: 1.23.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.21.1
8
+ * The version of the OpenAPI document: 1.23.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.21.1
7
+ * The version of the OpenAPI document: 1.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.21.1",
3
+ "version": "1.23.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {