@brightinteractive/platform-api 0.1.60 → 0.1.63

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 (37) hide show
  1. package/api/api.d.ts +3 -1
  2. package/api/externalApp.service.d.ts +22 -0
  3. package/api/shopify.service.d.ts +116 -0
  4. package/api/shopifySKUSettings.service.d.ts +79 -0
  5. package/fesm2022/brightinteractive-platform-api.mjs +853 -132
  6. package/fesm2022/brightinteractive-platform-api.mjs.map +1 -1
  7. package/model/actionType.d.ts +3 -1
  8. package/model/appName.d.ts +15 -0
  9. package/model/externalAppAccount.d.ts +33 -0
  10. package/model/externalAppAccountRequest.d.ts +4 -7
  11. package/model/externalAppAccountWithPermittedActions.d.ts +17 -0
  12. package/model/models.d.ts +26 -0
  13. package/model/resourceType.d.ts +2 -1
  14. package/model/shopifyAsset.d.ts +32 -0
  15. package/model/shopifyExportBatch.d.ts +27 -0
  16. package/model/shopifyExportBatchCompletedJob.d.ts +43 -0
  17. package/model/shopifyExportBatchJob.d.ts +8 -0
  18. package/model/shopifyExportBatchRequest.d.ts +23 -0
  19. package/model/shopifyExportBatchRequestItem.d.ts +21 -0
  20. package/model/shopifyExportFailure.d.ts +14 -0
  21. package/model/shopifyExportItemDetails.d.ts +17 -0
  22. package/model/shopifyExportSource.d.ts +7 -0
  23. package/model/shopifyExportSuccess.d.ts +14 -0
  24. package/model/shopifyImage.d.ts +24 -0
  25. package/model/shopifyProduct.d.ts +31 -0
  26. package/model/shopifyProductFieldInSearchCriterion.d.ts +26 -0
  27. package/model/shopifyProductImageDestination.d.ts +21 -0
  28. package/model/shopifyProductMedia.d.ts +21 -0
  29. package/model/shopifyProductSearch.d.ts +22 -0
  30. package/model/shopifyProductSearchCriterion.d.ts +17 -0
  31. package/model/shopifyProductSearchField.d.ts +18 -0
  32. package/model/shopifyProductSearchRequest.d.ts +31 -0
  33. package/model/shopifyProductWithPermittedActions.d.ts +17 -0
  34. package/model/shopifySkuSettings.d.ts +17 -0
  35. package/model/shopifySkuSettingsRequest.d.ts +17 -0
  36. package/model/shopifySkuSettingsWithPermittedActions.d.ts +17 -0
  37. package/package.json +1 -1
package/api/api.d.ts CHANGED
@@ -94,6 +94,8 @@ export * from './searchFilters.service';
94
94
  import { SearchFiltersService } from './searchFilters.service';
95
95
  export * from './shopify.service';
96
96
  import { ShopifyService } from './shopify.service';
97
+ export * from './shopifySKUSettings.service';
98
+ import { ShopifySKUSettingsService } from './shopifySKUSettings.service';
97
99
  export * from './staffMembers.service';
98
100
  import { StaffMembersService } from './staffMembers.service';
99
101
  export * from './subdomains.service';
@@ -112,4 +114,4 @@ export * from './users.service';
112
114
  import { UsersService } from './users.service';
113
115
  export * from './wordPress.service';
114
116
  import { WordPressService } from './wordPress.service';
115
- export declare const APIS: (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 EntityQuotaOverridesService | 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 StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
117
+ export declare const APIS: (typeof AssetsService | 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 AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof EntityQuotaOverridesService | 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)[];
@@ -1,6 +1,7 @@
1
1
  import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ExternalAppAccountRequest } from '../model/externalAppAccountRequest';
4
+ import { ExternalAppAccountWithPermittedActions } from '../model/externalAppAccountWithPermittedActions';
4
5
  import { ExternalAppSsoTokenRequest } from '../model/externalAppSsoTokenRequest';
5
6
  import { ExternalAppUserRequest } from '../model/externalAppUserRequest';
6
7
  import { Configuration } from '../configuration';
@@ -14,6 +15,27 @@ export declare class ExternalAppService {
14
15
  constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
15
16
  private addToHttpParams;
16
17
  private addToHttpParamsRecursive;
18
+ /**
19
+ * Get all external app accounts
20
+ * Get all [`ExternalAppAccount`](#operation/getExternalAppAccounts) resources ordered by [`ExternalAppAccount.externalAppAccountId`](#operation/getExternalAppAccounts)
21
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
22
+ * @param reportProgress flag to report request and response progress.
23
+ */
24
+ getExternalAppAccounts(observe?: 'body', reportProgress?: boolean, options?: {
25
+ httpHeaderAccept?: 'application/json';
26
+ context?: HttpContext;
27
+ transferCache?: boolean;
28
+ }): Observable<Array<ExternalAppAccountWithPermittedActions>>;
29
+ getExternalAppAccounts(observe?: 'response', reportProgress?: boolean, options?: {
30
+ httpHeaderAccept?: 'application/json';
31
+ context?: HttpContext;
32
+ transferCache?: boolean;
33
+ }): Observable<HttpResponse<Array<ExternalAppAccountWithPermittedActions>>>;
34
+ getExternalAppAccounts(observe?: 'events', reportProgress?: boolean, options?: {
35
+ httpHeaderAccept?: 'application/json';
36
+ context?: HttpContext;
37
+ transferCache?: boolean;
38
+ }): Observable<HttpEvent<Array<ExternalAppAccountWithPermittedActions>>>;
17
39
  /**
18
40
  * Create an external app account
19
41
  * Associate an external app account with the account of the currently authenticated Dash user
@@ -2,8 +2,13 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, H
2
2
  import { Observable } from 'rxjs';
3
3
  import { CreateShopifyImageBatchRequest } from '../model/createShopifyImageBatchRequest';
4
4
  import { CreateShopifyProductImageBatchRequest } from '../model/createShopifyProductImageBatchRequest';
5
+ import { JobPatchRequest } from '../model/jobPatchRequest';
5
6
  import { NoResultJob } from '../model/noResultJob';
6
7
  import { ShopifyConnectionWithPermittedActions } from '../model/shopifyConnectionWithPermittedActions';
8
+ import { ShopifyExportBatchJob } from '../model/shopifyExportBatchJob';
9
+ import { ShopifyExportBatchRequest } from '../model/shopifyExportBatchRequest';
10
+ import { ShopifyProductSearch } from '../model/shopifyProductSearch';
11
+ import { ShopifyProductSearchRequest } from '../model/shopifyProductSearchRequest';
7
12
  import { Configuration } from '../configuration';
8
13
  import * as i0 from "@angular/core";
9
14
  export declare class ShopifyService {
@@ -15,6 +20,28 @@ export declare class ShopifyService {
15
20
  constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
16
21
  private addToHttpParams;
17
22
  private addToHttpParamsRecursive;
23
+ /**
24
+ * Delete a Shopify export
25
+ * Deletes a [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob)
26
+ * @param id The unique ID of the [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob)
27
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
28
+ * @param reportProgress flag to report request and response progress.
29
+ */
30
+ deleteShopifyExportBatchJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
31
+ httpHeaderAccept?: 'application/json';
32
+ context?: HttpContext;
33
+ transferCache?: boolean;
34
+ }): Observable<any>;
35
+ deleteShopifyExportBatchJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
36
+ httpHeaderAccept?: 'application/json';
37
+ context?: HttpContext;
38
+ transferCache?: boolean;
39
+ }): Observable<HttpResponse<any>>;
40
+ deleteShopifyExportBatchJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
41
+ httpHeaderAccept?: 'application/json';
42
+ context?: HttpContext;
43
+ transferCache?: boolean;
44
+ }): Observable<HttpEvent<any>>;
18
45
  /**
19
46
  * Callback required to install Dash with Shopify
20
47
  * This is quite an internal endpoint and is only really in the API due to needing to be on the dash.app domain.
@@ -65,6 +92,51 @@ export declare class ShopifyService {
65
92
  context?: HttpContext;
66
93
  transferCache?: boolean;
67
94
  }): Observable<HttpEvent<ShopifyConnectionWithPermittedActions>>;
95
+ /**
96
+ * Get the status of exporting to Shopify
97
+ * Get the status and eventual result of a [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob)
98
+ * @param id The unique ID of the [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob)
99
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
100
+ * @param reportProgress flag to report request and response progress.
101
+ */
102
+ getShopifyExportBatchJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
103
+ httpHeaderAccept?: 'application/json';
104
+ context?: HttpContext;
105
+ transferCache?: boolean;
106
+ }): Observable<ShopifyExportBatchJob>;
107
+ getShopifyExportBatchJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
108
+ httpHeaderAccept?: 'application/json';
109
+ context?: HttpContext;
110
+ transferCache?: boolean;
111
+ }): Observable<HttpResponse<ShopifyExportBatchJob>>;
112
+ getShopifyExportBatchJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
113
+ httpHeaderAccept?: 'application/json';
114
+ context?: HttpContext;
115
+ transferCache?: boolean;
116
+ }): Observable<HttpEvent<ShopifyExportBatchJob>>;
117
+ /**
118
+ * Update the status of exporting to Shopify
119
+ * Update a [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob). Primarily used to stop a job.
120
+ * @param id The unique ID of the [&#x60;ShopifyExportBatchJob&#x60;](#operation/postShopifyExportBatchJob)
121
+ * @param jobPatchRequest
122
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
123
+ * @param reportProgress flag to report request and response progress.
124
+ */
125
+ patchShopifyExportBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
126
+ httpHeaderAccept?: 'application/json';
127
+ context?: HttpContext;
128
+ transferCache?: boolean;
129
+ }): Observable<ShopifyExportBatchJob>;
130
+ patchShopifyExportBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
131
+ httpHeaderAccept?: 'application/json';
132
+ context?: HttpContext;
133
+ transferCache?: boolean;
134
+ }): Observable<HttpResponse<ShopifyExportBatchJob>>;
135
+ patchShopifyExportBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
136
+ httpHeaderAccept?: 'application/json';
137
+ context?: HttpContext;
138
+ transferCache?: boolean;
139
+ }): Observable<HttpEvent<ShopifyExportBatchJob>>;
68
140
  /**
69
141
  * Send images to Shopify
70
142
  * See [&#x60;AssetDownloadBatchJob&#x60;](#operation/postAssetDownloadBatchJob) for an idea of how to use this endpoint
@@ -109,6 +181,50 @@ export declare class ShopifyService {
109
181
  context?: HttpContext;
110
182
  transferCache?: boolean;
111
183
  }): Observable<HttpEvent<NoResultJob>>;
184
+ /**
185
+ * Search for shopify products
186
+ * Search for products from a given Shopify store
187
+ * @param shopifyProductSearchRequest
188
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
189
+ * @param reportProgress flag to report request and response progress.
190
+ */
191
+ postProductSearches(shopifyProductSearchRequest: ShopifyProductSearchRequest, observe?: 'body', reportProgress?: boolean, options?: {
192
+ httpHeaderAccept?: 'application/json';
193
+ context?: HttpContext;
194
+ transferCache?: boolean;
195
+ }): Observable<ShopifyProductSearch>;
196
+ postProductSearches(shopifyProductSearchRequest: ShopifyProductSearchRequest, observe?: 'response', reportProgress?: boolean, options?: {
197
+ httpHeaderAccept?: 'application/json';
198
+ context?: HttpContext;
199
+ transferCache?: boolean;
200
+ }): Observable<HttpResponse<ShopifyProductSearch>>;
201
+ postProductSearches(shopifyProductSearchRequest: ShopifyProductSearchRequest, observe?: 'events', reportProgress?: boolean, options?: {
202
+ httpHeaderAccept?: 'application/json';
203
+ context?: HttpContext;
204
+ transferCache?: boolean;
205
+ }): Observable<HttpEvent<ShopifyProductSearch>>;
206
+ /**
207
+ * Export images to products in Shopify
208
+ * Create a Shopify export batch 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.
209
+ * @param shopifyExportBatchRequest
210
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
211
+ * @param reportProgress flag to report request and response progress.
212
+ */
213
+ postShopifyExportBatchJob(shopifyExportBatchRequest: ShopifyExportBatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
214
+ httpHeaderAccept?: 'application/json';
215
+ context?: HttpContext;
216
+ transferCache?: boolean;
217
+ }): Observable<ShopifyExportBatchJob>;
218
+ postShopifyExportBatchJob(shopifyExportBatchRequest: ShopifyExportBatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
219
+ httpHeaderAccept?: 'application/json';
220
+ context?: HttpContext;
221
+ transferCache?: boolean;
222
+ }): Observable<HttpResponse<ShopifyExportBatchJob>>;
223
+ postShopifyExportBatchJob(shopifyExportBatchRequest: ShopifyExportBatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
224
+ httpHeaderAccept?: 'application/json';
225
+ context?: HttpContext;
226
+ transferCache?: boolean;
227
+ }): Observable<HttpEvent<ShopifyExportBatchJob>>;
112
228
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyService, [null, { optional: true; }, { optional: true; }]>;
113
229
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyService>;
114
230
  }
@@ -0,0 +1,79 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ShopifySkuSettingsRequest } from '../model/shopifySkuSettingsRequest';
4
+ import { ShopifySkuSettingsWithPermittedActions } from '../model/shopifySkuSettingsWithPermittedActions';
5
+ import { Configuration } from '../configuration';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ShopifySKUSettingsService {
8
+ protected httpClient: HttpClient;
9
+ protected basePath: string;
10
+ defaultHeaders: HttpHeaders;
11
+ configuration: Configuration;
12
+ encoder: HttpParameterCodec;
13
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
14
+ private addToHttpParams;
15
+ private addToHttpParamsRecursive;
16
+ /**
17
+ * Delete the account Shopify SKU settings
18
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
19
+ * @param reportProgress flag to report request and response progress.
20
+ */
21
+ deleteShopifySkuSettings(observe?: 'body', reportProgress?: boolean, options?: {
22
+ httpHeaderAccept?: 'application/json';
23
+ context?: HttpContext;
24
+ transferCache?: boolean;
25
+ }): Observable<any>;
26
+ deleteShopifySkuSettings(observe?: 'response', reportProgress?: boolean, options?: {
27
+ httpHeaderAccept?: 'application/json';
28
+ context?: HttpContext;
29
+ transferCache?: boolean;
30
+ }): Observable<HttpResponse<any>>;
31
+ deleteShopifySkuSettings(observe?: 'events', reportProgress?: boolean, options?: {
32
+ httpHeaderAccept?: 'application/json';
33
+ context?: HttpContext;
34
+ transferCache?: boolean;
35
+ }): Observable<HttpEvent<any>>;
36
+ /**
37
+ * Get the account Shopify SKU settings
38
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
39
+ * @param reportProgress flag to report request and response progress.
40
+ */
41
+ getShopifySkuSettings(observe?: 'body', reportProgress?: boolean, options?: {
42
+ httpHeaderAccept?: 'application/json';
43
+ context?: HttpContext;
44
+ transferCache?: boolean;
45
+ }): Observable<ShopifySkuSettingsWithPermittedActions>;
46
+ getShopifySkuSettings(observe?: 'response', reportProgress?: boolean, options?: {
47
+ httpHeaderAccept?: 'application/json';
48
+ context?: HttpContext;
49
+ transferCache?: boolean;
50
+ }): Observable<HttpResponse<ShopifySkuSettingsWithPermittedActions>>;
51
+ getShopifySkuSettings(observe?: 'events', reportProgress?: boolean, options?: {
52
+ httpHeaderAccept?: 'application/json';
53
+ context?: HttpContext;
54
+ transferCache?: boolean;
55
+ }): Observable<HttpEvent<ShopifySkuSettingsWithPermittedActions>>;
56
+ /**
57
+ * Create or update the account Shopify SKU settings
58
+ * @param shopifySkuSettingsRequest
59
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
60
+ * @param reportProgress flag to report request and response progress.
61
+ */
62
+ putShopifySkuSettings(shopifySkuSettingsRequest: ShopifySkuSettingsRequest, observe?: 'body', reportProgress?: boolean, options?: {
63
+ httpHeaderAccept?: 'application/json';
64
+ context?: HttpContext;
65
+ transferCache?: boolean;
66
+ }): Observable<ShopifySkuSettingsWithPermittedActions>;
67
+ putShopifySkuSettings(shopifySkuSettingsRequest: ShopifySkuSettingsRequest, observe?: 'response', reportProgress?: boolean, options?: {
68
+ httpHeaderAccept?: 'application/json';
69
+ context?: HttpContext;
70
+ transferCache?: boolean;
71
+ }): Observable<HttpResponse<ShopifySkuSettingsWithPermittedActions>>;
72
+ putShopifySkuSettings(shopifySkuSettingsRequest: ShopifySkuSettingsRequest, observe?: 'events', reportProgress?: boolean, options?: {
73
+ httpHeaderAccept?: 'application/json';
74
+ context?: HttpContext;
75
+ transferCache?: boolean;
76
+ }): Observable<HttpEvent<ShopifySkuSettingsWithPermittedActions>>;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShopifySKUSettingsService, [null, { optional: true; }, { optional: true; }]>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShopifySKUSettingsService>;
79
+ }