@teemill/integrations 0.8.2 → 0.8.4

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.
Files changed (77) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/IntegrationsApi.d.ts +4 -4
  5. package/dist/apis/IntegrationsApi.js +172 -351
  6. package/dist/esm/apis/IntegrationsApi.d.ts +91 -0
  7. package/dist/esm/apis/IntegrationsApi.js +256 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +3 -0
  10. package/dist/esm/index.d.ts +3 -0
  11. package/dist/esm/index.js +5 -0
  12. package/dist/esm/models/ApiError.d.ts +37 -0
  13. package/dist/esm/models/ApiError.js +42 -0
  14. package/dist/esm/models/CategoriesResponse.d.ts +32 -0
  15. package/dist/esm/models/CategoriesResponse.js +44 -0
  16. package/dist/esm/models/Integration.d.ts +62 -0
  17. package/dist/esm/models/Integration.js +57 -0
  18. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +32 -0
  19. package/dist/esm/models/IntegrationCategoriesResponse.js +41 -0
  20. package/dist/esm/models/IntegrationCategory.d.ts +52 -0
  21. package/dist/esm/models/IntegrationCategory.js +56 -0
  22. package/dist/esm/models/IntegrationInfo.d.ts +49 -0
  23. package/dist/esm/models/IntegrationInfo.js +52 -0
  24. package/dist/esm/models/IntegrationListing.d.ts +93 -0
  25. package/dist/esm/models/IntegrationListing.js +79 -0
  26. package/dist/esm/models/IntegrationListingGradient.d.ts +37 -0
  27. package/dist/esm/models/IntegrationListingGradient.js +40 -0
  28. package/dist/esm/models/IntegrationListingsResponse.d.ts +32 -0
  29. package/dist/esm/models/IntegrationListingsResponse.js +41 -0
  30. package/dist/esm/models/IntegrationProduct.d.ts +61 -0
  31. package/dist/esm/models/IntegrationProduct.js +57 -0
  32. package/dist/esm/models/IntegrationProductsResponse.d.ts +32 -0
  33. package/dist/esm/models/IntegrationProductsResponse.js +41 -0
  34. package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
  35. package/dist/esm/models/IntegrationsResponse.js +44 -0
  36. package/dist/esm/models/index.d.ts +8 -0
  37. package/dist/esm/models/index.js +10 -0
  38. package/dist/esm/runtime.d.ts +187 -0
  39. package/dist/esm/runtime.js +333 -0
  40. package/dist/models/ApiError.d.ts +1 -1
  41. package/dist/models/ApiError.js +10 -14
  42. package/dist/models/CategoriesResponse.js +2 -2
  43. package/dist/models/Integration.js +3 -3
  44. package/dist/models/IntegrationCategoriesResponse.d.ts +32 -0
  45. package/dist/models/IntegrationCategoriesResponse.js +48 -0
  46. package/dist/models/IntegrationCategory.d.ts +1 -1
  47. package/dist/models/IntegrationCategory.js +14 -15
  48. package/dist/models/IntegrationInfo.js +1 -1
  49. package/dist/models/IntegrationListing.d.ts +3 -3
  50. package/dist/models/IntegrationListing.js +39 -33
  51. package/dist/models/IntegrationListingGradient.d.ts +1 -1
  52. package/dist/models/IntegrationListingGradient.js +9 -14
  53. package/dist/models/IntegrationListingsResponse.d.ts +2 -2
  54. package/dist/models/IntegrationListingsResponse.js +10 -13
  55. package/dist/models/IntegrationProduct.d.ts +2 -2
  56. package/dist/models/IntegrationProduct.js +21 -21
  57. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  58. package/dist/models/IntegrationProductsResponse.js +9 -12
  59. package/dist/models/IntegrationsResponse.js +2 -2
  60. package/dist/models/index.d.ts +1 -1
  61. package/dist/models/index.js +1 -1
  62. package/dist/runtime.d.ts +1 -1
  63. package/dist/runtime.js +223 -439
  64. package/package.json +4 -2
  65. package/src/apis/IntegrationsApi.ts +7 -7
  66. package/src/models/ApiError.ts +10 -15
  67. package/src/models/IntegrationCategoriesResponse.ts +68 -0
  68. package/src/models/IntegrationCategory.ts +12 -17
  69. package/src/models/IntegrationListing.ts +30 -34
  70. package/src/models/IntegrationListingGradient.ts +10 -15
  71. package/src/models/IntegrationListingsResponse.ts +10 -14
  72. package/src/models/IntegrationProduct.ts +18 -23
  73. package/src/models/IntegrationProductsResponse.ts +8 -13
  74. package/src/models/index.ts +1 -1
  75. package/src/runtime.ts +1 -1
  76. package/tsconfig.esm.json +7 -0
  77. package/tsconfig.json +2 -2
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.8.4
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the IntegrationProduct interface.
16
+ */
17
+ export function instanceOfIntegrationProduct(value) {
18
+ if (!('sku' in value))
19
+ return false;
20
+ if (!('name' in value))
21
+ return false;
22
+ if (!('slug' in value))
23
+ return false;
24
+ if (!('description' in value))
25
+ return false;
26
+ if (!('price' in value))
27
+ return false;
28
+ return true;
29
+ }
30
+ export function IntegrationProductFromJSON(json) {
31
+ return IntegrationProductFromJSONTyped(json, false);
32
+ }
33
+ export function IntegrationProductFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'] == null ? undefined : json['id'],
39
+ 'sku': json['sku'],
40
+ 'name': json['name'],
41
+ 'slug': json['slug'],
42
+ 'description': json['description'],
43
+ 'price': json['price'],
44
+ };
45
+ }
46
+ export function IntegrationProductToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'sku': value['sku'],
52
+ 'name': value['name'],
53
+ 'slug': value['slug'],
54
+ 'description': value['description'],
55
+ 'price': value['price'],
56
+ };
57
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.8.4
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IntegrationProduct } from './IntegrationProduct';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntegrationProductsResponse
17
+ */
18
+ export interface IntegrationProductsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IntegrationProduct>}
22
+ * @memberof IntegrationProductsResponse
23
+ */
24
+ products: Array<IntegrationProduct>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntegrationProductsResponse interface.
28
+ */
29
+ export declare function instanceOfIntegrationProductsResponse(value: object): boolean;
30
+ export declare function IntegrationProductsResponseFromJSON(json: any): IntegrationProductsResponse;
31
+ export declare function IntegrationProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProductsResponse;
32
+ export declare function IntegrationProductsResponseToJSON(value?: IntegrationProductsResponse | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.8.4
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { IntegrationProductFromJSON, IntegrationProductToJSON, } from './IntegrationProduct';
15
+ /**
16
+ * Check if a given object implements the IntegrationProductsResponse interface.
17
+ */
18
+ export function instanceOfIntegrationProductsResponse(value) {
19
+ if (!('products' in value))
20
+ return false;
21
+ return true;
22
+ }
23
+ export function IntegrationProductsResponseFromJSON(json) {
24
+ return IntegrationProductsResponseFromJSONTyped(json, false);
25
+ }
26
+ export function IntegrationProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'products': (json['products'].map(IntegrationProductFromJSON)),
32
+ };
33
+ }
34
+ export function IntegrationProductsResponseToJSON(value) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'products': (value['products'].map(IntegrationProductToJSON)),
40
+ };
41
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.7.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Integration } from './Integration';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntegrationsResponse
17
+ */
18
+ export interface IntegrationsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Integration>}
22
+ * @memberof IntegrationsResponse
23
+ */
24
+ integrations: Array<Integration>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntegrationsResponse interface.
28
+ */
29
+ export declare function instanceOfIntegrationsResponse(value: object): boolean;
30
+ export declare function IntegrationsResponseFromJSON(json: any): IntegrationsResponse;
31
+ export declare function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse;
32
+ export declare function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.7.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { IntegrationFromJSON, IntegrationToJSON, } from './Integration';
15
+ /**
16
+ * Check if a given object implements the IntegrationsResponse interface.
17
+ */
18
+ export function instanceOfIntegrationsResponse(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "integrations" in value;
21
+ return isInstance;
22
+ }
23
+ export function IntegrationsResponseFromJSON(json) {
24
+ return IntegrationsResponseFromJSONTyped(json, false);
25
+ }
26
+ export function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'integrations': (json['integrations'].map(IntegrationFromJSON)),
32
+ };
33
+ }
34
+ export function IntegrationsResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'integrations': (value.integrations.map(IntegrationToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,8 @@
1
+ export * from './ApiError';
2
+ export * from './IntegrationCategoriesResponse';
3
+ export * from './IntegrationCategory';
4
+ export * from './IntegrationListing';
5
+ export * from './IntegrationListingGradient';
6
+ export * from './IntegrationListingsResponse';
7
+ export * from './IntegrationProduct';
8
+ export * from './IntegrationProductsResponse';
@@ -0,0 +1,10 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ApiError';
4
+ export * from './IntegrationCategoriesResponse';
5
+ export * from './IntegrationCategory';
6
+ export * from './IntegrationListing';
7
+ export * from './IntegrationListingGradient';
8
+ export * from './IntegrationListingsResponse';
9
+ export * from './IntegrationProduct';
10
+ export * from './IntegrationProductsResponse';
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.8.4
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export type OptionalProperties<T> = {
13
+ [K in keyof T]-?: undefined extends T[K] ? K : never;
14
+ }[keyof T];
15
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
16
+ export declare const BASE_PATH: string;
17
+ export interface ConfigurationParameters {
18
+ basePath?: string;
19
+ fetchApi?: FetchAPI;
20
+ middleware?: Middleware[];
21
+ queryParamsStringify?: (params: HTTPQuery) => string;
22
+ username?: string;
23
+ password?: string;
24
+ apiKey?: string | ((name: string) => string);
25
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
26
+ headers?: HTTPHeaders;
27
+ credentials?: RequestCredentials;
28
+ }
29
+ export declare class Configuration {
30
+ private configuration;
31
+ constructor(configuration?: ConfigurationParameters);
32
+ set config(configuration: Configuration);
33
+ get basePath(): string;
34
+ get fetchApi(): FetchAPI | undefined;
35
+ get middleware(): Middleware[];
36
+ get queryParamsStringify(): (params: HTTPQuery) => string;
37
+ get username(): string | undefined;
38
+ get password(): string | undefined;
39
+ get apiKey(): ((name: string) => string) | undefined;
40
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
41
+ get headers(): HTTPHeaders | undefined;
42
+ get credentials(): RequestCredentials | undefined;
43
+ }
44
+ export declare const DefaultConfig: Configuration;
45
+ /**
46
+ * This is the base class for all generated API classes.
47
+ */
48
+ export declare class BaseAPI {
49
+ protected configuration: Configuration;
50
+ private static readonly jsonRegex;
51
+ private middleware;
52
+ constructor(configuration?: Configuration);
53
+ isResponseError(error: any): error is ResponseError;
54
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
55
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
56
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
57
+ /**
58
+ * Check if the given MIME is a JSON MIME.
59
+ * JSON MIME examples:
60
+ * application/json
61
+ * application/json; charset=UTF8
62
+ * APPLICATION/JSON
63
+ * application/vnd.company+json
64
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
65
+ * @return True if the given MIME is JSON, false otherwise.
66
+ */
67
+ protected isJsonMime(mime: string | null | undefined): boolean;
68
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
69
+ private createFetchParams;
70
+ private fetchApi;
71
+ /**
72
+ * Create a shallow clone of `this` by constructing a new instance
73
+ * and then shallow cloning data members.
74
+ */
75
+ private clone;
76
+ }
77
+ export declare class ResponseError extends Error {
78
+ response: Response;
79
+ name: "ResponseError";
80
+ constructor(response: Response, msg?: string);
81
+ }
82
+ export declare class FetchError extends Error {
83
+ cause: Error;
84
+ name: "FetchError";
85
+ constructor(cause: Error, msg?: string);
86
+ }
87
+ export declare class RequiredError extends Error {
88
+ field: string;
89
+ name: "RequiredError";
90
+ constructor(field: string, msg?: string);
91
+ }
92
+ export declare const COLLECTION_FORMATS: {
93
+ csv: string;
94
+ ssv: string;
95
+ tsv: string;
96
+ pipes: string;
97
+ };
98
+ export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
99
+ export type Json = any;
100
+ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
101
+ export type HTTPHeaders = {
102
+ [key: string]: string;
103
+ };
104
+ export type HTTPQuery = {
105
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
106
+ };
107
+ export type HTTPBody = Json | FormData | URLSearchParams;
108
+ export type HTTPRequestInit = {
109
+ headers?: HTTPHeaders;
110
+ method: HTTPMethod;
111
+ credentials?: RequestCredentials;
112
+ body?: HTTPBody;
113
+ };
114
+ export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
115
+ export type InitOverrideFunction = (requestContext: {
116
+ init: HTTPRequestInit;
117
+ context: RequestOpts;
118
+ }) => Promise<RequestInit>;
119
+ export interface FetchParams {
120
+ url: string;
121
+ init: RequestInit;
122
+ }
123
+ export interface RequestOpts {
124
+ path: string;
125
+ method: HTTPMethod;
126
+ headers: HTTPHeaders;
127
+ query?: HTTPQuery;
128
+ body?: HTTPBody;
129
+ }
130
+ export declare function exists(json: any, key: string): boolean;
131
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
132
+ export declare function mapValues(data: any, fn: (item: any) => any): {};
133
+ export declare function canConsumeForm(consumes: Consume[]): boolean;
134
+ export interface Consume {
135
+ contentType: string;
136
+ }
137
+ export interface RequestContext {
138
+ fetch: FetchAPI;
139
+ url: string;
140
+ init: RequestInit;
141
+ }
142
+ export interface ResponseContext {
143
+ fetch: FetchAPI;
144
+ url: string;
145
+ init: RequestInit;
146
+ response: Response;
147
+ }
148
+ export interface ErrorContext {
149
+ fetch: FetchAPI;
150
+ url: string;
151
+ init: RequestInit;
152
+ error: unknown;
153
+ response?: Response;
154
+ }
155
+ export interface Middleware {
156
+ pre?(context: RequestContext): Promise<FetchParams | void>;
157
+ post?(context: ResponseContext): Promise<Response | void>;
158
+ onError?(context: ErrorContext): Promise<Response | void>;
159
+ }
160
+ export interface ApiResponse<T> {
161
+ raw: Response;
162
+ value(): Promise<T>;
163
+ }
164
+ export interface ResponseTransformer<T> {
165
+ (json: any): T;
166
+ }
167
+ export declare class JSONApiResponse<T> {
168
+ raw: Response;
169
+ private transformer;
170
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
171
+ value(): Promise<T>;
172
+ }
173
+ export declare class VoidApiResponse {
174
+ raw: Response;
175
+ constructor(raw: Response);
176
+ value(): Promise<void>;
177
+ }
178
+ export declare class BlobApiResponse {
179
+ raw: Response;
180
+ constructor(raw: Response);
181
+ value(): Promise<Blob>;
182
+ }
183
+ export declare class TextApiResponse {
184
+ raw: Response;
185
+ constructor(raw: Response);
186
+ value(): Promise<string>;
187
+ }