@transcommerce/cwm-shared 1.1.57 → 1.1.59
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/fesm2022/transcommerce-cwm-shared.mjs +25758 -25756
- package/fesm2022/transcommerce-cwm-shared.mjs.map +1 -1
- package/lib/models/inventory-api-response.d.ts +1 -2
- package/lib/services/inventory-api.service.d.ts +1 -2
- package/lib/services/mocks/mock-inventory-api-response.d.ts +1 -2
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/lib/models/api-response.d.ts +0 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HttpStatusCode } from "@angular/common/http";
|
|
2
2
|
import { FlowhubProduct } from "./flowhub-product";
|
|
3
|
-
import { ApiResponse } from './api-response';
|
|
4
3
|
export type InventoryApiResponse = {
|
|
5
4
|
status: HttpStatusCode;
|
|
6
5
|
data: FlowhubProduct[];
|
|
7
6
|
};
|
|
8
|
-
export declare const DEFAULT_INVENTORY_API_RESPONSE:
|
|
7
|
+
export declare const DEFAULT_INVENTORY_API_RESPONSE: InventoryApiResponse;
|
|
@@ -5,14 +5,13 @@ import { Product } from '../models/product';
|
|
|
5
5
|
import { BaseApiService } from './base-api.service';
|
|
6
6
|
import { ConfigService } from './config.service';
|
|
7
7
|
import { ClassLoggerService } from './class-logger.service';
|
|
8
|
-
import { ApiResponse } from '../models/api-response';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class InventoryApiService extends BaseApiService {
|
|
11
10
|
useMockData: boolean;
|
|
12
11
|
constructor(document: Document, configService: ConfigService, httpClient: HttpClient, logger: ClassLoggerService);
|
|
13
12
|
private get httpHeaders();
|
|
14
13
|
get apiFullUrl(): string;
|
|
15
|
-
getProductsAsync(companyName: string): Promise<
|
|
14
|
+
getProductsAsync(companyName: string): Promise<InventoryApiResponse>;
|
|
16
15
|
getCategoriesAsync(companyName: string): Promise<string[]>;
|
|
17
16
|
getProductsByAllCategories(companyName: string): Promise<KeyValue<string, Product[]>[]>;
|
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<InventoryApiService, never>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { InventoryApiResponse } from "../../models/inventory-api-response";
|
|
2
|
-
|
|
3
|
-
export declare const MockInventoryApiResponse: ApiResponse<InventoryApiResponse>;
|
|
2
|
+
export declare const MockInventoryApiResponse: InventoryApiResponse;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export * from './lib/models/config/carousel-config';
|
|
|
17
17
|
export * from './lib/models/config/configuration';
|
|
18
18
|
export * from './lib/models/config/menu-board-config';
|
|
19
19
|
export * from './lib/models/config/subscription-config';
|
|
20
|
-
export * from "./lib/models/api-response";
|
|
21
20
|
export * from './lib/models/create-subscription-request';
|
|
22
21
|
export * from './lib/models/cannabinoid-information';
|
|
23
22
|
export * from './lib/models/category';
|