@brightinteractive/platform-api 0.1.63 → 0.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/api/api.d.ts +1 -1
- package/api/shopify.service.d.ts +51 -31
- package/fesm2022/brightinteractive-platform-api.mjs +78 -59
- package/fesm2022/brightinteractive-platform-api.mjs.map +1 -1
- package/model/{shopifyAsset.d.ts → dashAsset.d.ts} +7 -4
- package/model/models.d.ts +5 -11
- package/model/{shopifyExportBatchRequest.d.ts → shopifyExportRequest.d.ts} +3 -3
- package/model/{shopifyExportItemDetails.d.ts → shopifyExportRequestItem.d.ts} +3 -3
- package/model/shopifyExportSource.d.ts +14 -3
- package/model/{shopifyImage.d.ts → shopifyFile.d.ts} +7 -7
- package/model/{shopifyProductImageDestination.d.ts → shopifyProductFileDestination.d.ts} +1 -1
- package/package.json +1 -1
- package/model/shopifyExportBatch.d.ts +0 -27
- package/model/shopifyExportBatchCompletedJob.d.ts +0 -43
- package/model/shopifyExportBatchJob.d.ts +0 -8
- package/model/shopifyExportBatchRequestItem.d.ts +0 -21
- package/model/shopifyExportFailure.d.ts +0 -14
- package/model/shopifyExportSuccess.d.ts +0 -14
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# PlatformApi
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project platform-api` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project platform-api`.
|
|
8
|
-
> Note: Don't forget to add `--project platform-api` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build platform-api` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build platform-api`, go to the dist folder `cd dist/platform-api` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test platform-api` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# PlatformApi
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project platform-api` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project platform-api`.
|
|
8
|
+
> Note: Don't forget to add `--project platform-api` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build platform-api` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build platform-api`, go to the dist folder `cd dist/platform-api` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test platform-api` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/api/api.d.ts
CHANGED
|
@@ -114,4 +114,4 @@ export * from './users.service';
|
|
|
114
114
|
import { UsersService } from './users.service';
|
|
115
115
|
export * from './wordPress.service';
|
|
116
116
|
import { WordPressService } from './wordPress.service';
|
|
117
|
-
export declare const APIS: (typeof
|
|
117
|
+
export declare const APIS: (typeof EntityQuotaOverridesService | typeof AIImageGenerationsService | typeof AccountSecurityService | typeof AccountsService | typeof AssetCommentsService | typeof AssetDeduplicationService | typeof AssetDownloadEventsService | typeof AssetEmbeddableLinksService | typeof AssetMetadataExportService | typeof AssetSavedCropAreaSummariesService | typeof AssetSavedCropAreasService | typeof AssetShareAccessTokensService | typeof AssetShareEmailsService | typeof AssetSharesService | typeof AssetsService | typeof AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof ExternalAppService | typeof FieldOptionImagesService | typeof FieldOptionsService | typeof FieldViewsService | typeof FieldsService | typeof FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetTransformationsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifyService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
|
package/api/shopify.service.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ import { CreateShopifyProductImageBatchRequest } from '../model/createShopifyPro
|
|
|
5
5
|
import { JobPatchRequest } from '../model/jobPatchRequest';
|
|
6
6
|
import { NoResultJob } from '../model/noResultJob';
|
|
7
7
|
import { ShopifyConnectionWithPermittedActions } from '../model/shopifyConnectionWithPermittedActions';
|
|
8
|
-
import {
|
|
9
|
-
import { ShopifyExportBatchRequest } from '../model/shopifyExportBatchRequest';
|
|
8
|
+
import { ShopifyExportRequest } from '../model/shopifyExportRequest';
|
|
10
9
|
import { ShopifyProductSearch } from '../model/shopifyProductSearch';
|
|
11
10
|
import { ShopifyProductSearchRequest } from '../model/shopifyProductSearchRequest';
|
|
12
11
|
import { Configuration } from '../configuration';
|
|
@@ -22,26 +21,47 @@ export declare class ShopifyService {
|
|
|
22
21
|
private addToHttpParamsRecursive;
|
|
23
22
|
/**
|
|
24
23
|
* Delete a Shopify export
|
|
25
|
-
* Deletes a [`
|
|
26
|
-
* @param id The unique ID of the [`
|
|
24
|
+
* Deletes a [`ShopifyExportJob`](#operation/postShopifyExportJob)
|
|
25
|
+
* @param id The unique ID of the [`ShopifyExportJob`](#operation/postShopifyExportJob)
|
|
27
26
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
28
27
|
* @param reportProgress flag to report request and response progress.
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
deleteShopifyExportJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
31
30
|
httpHeaderAccept?: 'application/json';
|
|
32
31
|
context?: HttpContext;
|
|
33
32
|
transferCache?: boolean;
|
|
34
33
|
}): Observable<any>;
|
|
35
|
-
|
|
34
|
+
deleteShopifyExportJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
36
35
|
httpHeaderAccept?: 'application/json';
|
|
37
36
|
context?: HttpContext;
|
|
38
37
|
transferCache?: boolean;
|
|
39
38
|
}): Observable<HttpResponse<any>>;
|
|
40
|
-
|
|
39
|
+
deleteShopifyExportJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
41
40
|
httpHeaderAccept?: 'application/json';
|
|
42
41
|
context?: HttpContext;
|
|
43
42
|
transferCache?: boolean;
|
|
44
43
|
}): Observable<HttpEvent<any>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the current user\'s shopify export jobs
|
|
46
|
+
* Get the status and eventual result of all [`ShopifyExportJob`](#operation/postShopifyExportJob)s for the current user
|
|
47
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
48
|
+
* @param reportProgress flag to report request and response progress.
|
|
49
|
+
*/
|
|
50
|
+
getCurrentUserShopifyExportJobs(observe?: 'body', reportProgress?: boolean, options?: {
|
|
51
|
+
httpHeaderAccept?: 'application/json';
|
|
52
|
+
context?: HttpContext;
|
|
53
|
+
transferCache?: boolean;
|
|
54
|
+
}): Observable<Array<NoResultJob>>;
|
|
55
|
+
getCurrentUserShopifyExportJobs(observe?: 'response', reportProgress?: boolean, options?: {
|
|
56
|
+
httpHeaderAccept?: 'application/json';
|
|
57
|
+
context?: HttpContext;
|
|
58
|
+
transferCache?: boolean;
|
|
59
|
+
}): Observable<HttpResponse<Array<NoResultJob>>>;
|
|
60
|
+
getCurrentUserShopifyExportJobs(observe?: 'events', reportProgress?: boolean, options?: {
|
|
61
|
+
httpHeaderAccept?: 'application/json';
|
|
62
|
+
context?: HttpContext;
|
|
63
|
+
transferCache?: boolean;
|
|
64
|
+
}): Observable<HttpEvent<Array<NoResultJob>>>;
|
|
45
65
|
/**
|
|
46
66
|
* Callback required to install Dash with Shopify
|
|
47
67
|
* This is quite an internal endpoint and is only really in the API due to needing to be on the dash.app domain.
|
|
@@ -94,49 +114,49 @@ export declare class ShopifyService {
|
|
|
94
114
|
}): Observable<HttpEvent<ShopifyConnectionWithPermittedActions>>;
|
|
95
115
|
/**
|
|
96
116
|
* Get the status of exporting to Shopify
|
|
97
|
-
* Get the status and eventual result of a [`
|
|
98
|
-
* @param id The unique ID of the [`
|
|
117
|
+
* Get the status and eventual result of a [`ShopifyExportJob`](#operation/postShopifyExportJob)
|
|
118
|
+
* @param id The unique ID of the [`ShopifyExportJob`](#operation/postShopifyExportJob)
|
|
99
119
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
100
120
|
* @param reportProgress flag to report request and response progress.
|
|
101
121
|
*/
|
|
102
|
-
|
|
122
|
+
getShopifyExportJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
103
123
|
httpHeaderAccept?: 'application/json';
|
|
104
124
|
context?: HttpContext;
|
|
105
125
|
transferCache?: boolean;
|
|
106
|
-
}): Observable<
|
|
107
|
-
|
|
126
|
+
}): Observable<NoResultJob>;
|
|
127
|
+
getShopifyExportJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
108
128
|
httpHeaderAccept?: 'application/json';
|
|
109
129
|
context?: HttpContext;
|
|
110
130
|
transferCache?: boolean;
|
|
111
|
-
}): Observable<HttpResponse<
|
|
112
|
-
|
|
131
|
+
}): Observable<HttpResponse<NoResultJob>>;
|
|
132
|
+
getShopifyExportJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
113
133
|
httpHeaderAccept?: 'application/json';
|
|
114
134
|
context?: HttpContext;
|
|
115
135
|
transferCache?: boolean;
|
|
116
|
-
}): Observable<HttpEvent<
|
|
136
|
+
}): Observable<HttpEvent<NoResultJob>>;
|
|
117
137
|
/**
|
|
118
138
|
* Update the status of exporting to Shopify
|
|
119
|
-
* Update a [`
|
|
120
|
-
* @param id The unique ID of the [`
|
|
139
|
+
* Update a [`ShopifyExportJob`](#operation/postShopifyExportJob). Primarily used to stop a job.
|
|
140
|
+
* @param id The unique ID of the [`ShopifyExportJob`](#operation/postShopifyExportJob)
|
|
121
141
|
* @param jobPatchRequest
|
|
122
142
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
123
143
|
* @param reportProgress flag to report request and response progress.
|
|
124
144
|
*/
|
|
125
|
-
|
|
145
|
+
patchShopifyExportJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
|
126
146
|
httpHeaderAccept?: 'application/json';
|
|
127
147
|
context?: HttpContext;
|
|
128
148
|
transferCache?: boolean;
|
|
129
|
-
}): Observable<
|
|
130
|
-
|
|
149
|
+
}): Observable<NoResultJob>;
|
|
150
|
+
patchShopifyExportJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
131
151
|
httpHeaderAccept?: 'application/json';
|
|
132
152
|
context?: HttpContext;
|
|
133
153
|
transferCache?: boolean;
|
|
134
|
-
}): Observable<HttpResponse<
|
|
135
|
-
|
|
154
|
+
}): Observable<HttpResponse<NoResultJob>>;
|
|
155
|
+
patchShopifyExportJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
136
156
|
httpHeaderAccept?: 'application/json';
|
|
137
157
|
context?: HttpContext;
|
|
138
158
|
transferCache?: boolean;
|
|
139
|
-
}): Observable<HttpEvent<
|
|
159
|
+
}): Observable<HttpEvent<NoResultJob>>;
|
|
140
160
|
/**
|
|
141
161
|
* Send images to Shopify
|
|
142
162
|
* See [`AssetDownloadBatchJob`](#operation/postAssetDownloadBatchJob) for an idea of how to use this endpoint
|
|
@@ -205,26 +225,26 @@ export declare class ShopifyService {
|
|
|
205
225
|
}): Observable<HttpEvent<ShopifyProductSearch>>;
|
|
206
226
|
/**
|
|
207
227
|
* Export images to products in Shopify
|
|
208
|
-
* Create a Shopify export
|
|
209
|
-
* @param
|
|
228
|
+
* Create a Shopify export job to upload multiple assets from Dash into your Shopify account. The uploaded assets can be associated with products and their position on the product listing can be specified. Existing Shopify images can also be reordered.
|
|
229
|
+
* @param shopifyExportRequest
|
|
210
230
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
211
231
|
* @param reportProgress flag to report request and response progress.
|
|
212
232
|
*/
|
|
213
|
-
|
|
233
|
+
postShopifyExportJob(shopifyExportRequest: ShopifyExportRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
|
214
234
|
httpHeaderAccept?: 'application/json';
|
|
215
235
|
context?: HttpContext;
|
|
216
236
|
transferCache?: boolean;
|
|
217
|
-
}): Observable<
|
|
218
|
-
|
|
237
|
+
}): Observable<NoResultJob>;
|
|
238
|
+
postShopifyExportJob(shopifyExportRequest: ShopifyExportRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
219
239
|
httpHeaderAccept?: 'application/json';
|
|
220
240
|
context?: HttpContext;
|
|
221
241
|
transferCache?: boolean;
|
|
222
|
-
}): Observable<HttpResponse<
|
|
223
|
-
|
|
242
|
+
}): Observable<HttpResponse<NoResultJob>>;
|
|
243
|
+
postShopifyExportJob(shopifyExportRequest: ShopifyExportRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
224
244
|
httpHeaderAccept?: 'application/json';
|
|
225
245
|
context?: HttpContext;
|
|
226
246
|
transferCache?: boolean;
|
|
227
|
-
}): Observable<HttpEvent<
|
|
247
|
+
}): Observable<HttpEvent<NoResultJob>>;
|
|
228
248
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyService, [null, { optional: true; }, { optional: true; }]>;
|
|
229
249
|
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyService>;
|
|
230
250
|
}
|