@sales-planner/http-client 0.9.3 → 0.11.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
@@ -52,6 +52,18 @@ const brands = await client.brands.getBrands({ tenantId, shopId });
52
52
  await client.brands.importBrandsJson(items, { tenantId, shopId });
53
53
  const brandsCsv = await client.brands.exportBrandsCsv({ tenantId, shopId });
54
54
 
55
+ // Categories with import/export
56
+ const categories = await client.categories.getCategories({ tenantId, shopId });
57
+ await client.categories.importCategoriesJson(items, { tenantId, shopId });
58
+
59
+ // Groups with import/export
60
+ const groups = await client.groups.getGroups({ tenantId, shopId });
61
+ await client.groups.importGroupsJson(items, { tenantId, shopId });
62
+
63
+ // Statuses with import/export
64
+ const statuses = await client.statuses.getStatuses({ tenantId, shopId });
65
+ await client.statuses.importStatusesJson(items, { tenantId, shopId });
66
+
55
67
  // Sales History
56
68
  const history = await client.salesHistory.getSalesHistory(
57
69
  { tenantId, shopId },
@@ -63,7 +75,7 @@ const marketplaces = await client.marketplaces.getMarketplaces({ tenantId });
63
75
 
64
76
  // Entity Metadata (for UI documentation)
65
77
  const metadata = await client.metadata.getEntitiesMetadata();
66
- // Returns field definitions for brands, marketplaces, skus, sales history
78
+ // Returns field definitions for brands, categories, groups, statuses, marketplaces, skus, sales history
67
79
  ```
68
80
 
69
81
  **Benefits:**
@@ -84,7 +96,7 @@ const skus = await client.getSkus({ tenantId, shopId });
84
96
 
85
97
  ## Import/Export Pattern
86
98
 
87
- Resources that support bulk operations (SKUs, Brands, Sales History, Marketplaces) follow a consistent pattern:
99
+ Resources that support bulk operations (SKUs, Brands, Categories, Groups, Statuses, Sales History, Marketplaces) follow a consistent pattern:
88
100
 
89
101
  ```typescript
90
102
  // Import from JSON
@@ -107,13 +119,26 @@ const csv = await client.skus.exportSkusCsv({ tenantId, shopId });
107
119
  // Get example templates (no auth required)
108
120
  const exampleCsv = await client.skus.getSkusExampleCsv();
109
121
 
110
- // Same pattern works for brands
122
+ // Same pattern works for brands, categories, groups, statuses
111
123
  const brandResult = await client.brands.importBrandsJson(
112
124
  [{ code: 'apple', title: 'Apple' }],
113
125
  { tenantId, shopId }
114
126
  );
115
- const brandsCsv = await client.brands.exportBrandsCsv({ tenantId, shopId });
116
- const brandExample = await client.brands.getBrandsExampleCsv();
127
+
128
+ const categoryResult = await client.categories.importCategoriesJson(
129
+ [{ code: 'electronics', title: 'Electronics' }],
130
+ { tenantId, shopId }
131
+ );
132
+
133
+ const groupResult = await client.groups.importGroupsJson(
134
+ [{ code: 'smartphones', title: 'Smartphones' }],
135
+ { tenantId, shopId }
136
+ );
137
+
138
+ const statusResult = await client.statuses.importStatusesJson(
139
+ [{ code: 'active', title: 'Active' }],
140
+ { tenantId, shopId }
141
+ );
117
142
  ```
118
143
 
119
144
  ## Data Requirements
@@ -138,6 +163,36 @@ const brandExample = await client.brands.getBrandsExampleCsv();
138
163
  - `code` (optional): String, 1-100 characters
139
164
  - `title` (optional): String, 1-200 characters
140
165
 
166
+ ### Categories
167
+
168
+ **Create/Import:**
169
+ - `code` (required): String, 1-100 characters, unique per shop
170
+ - `title` (required): String, 1-200 characters
171
+
172
+ **Update:**
173
+ - `code` (optional): String, 1-100 characters
174
+ - `title` (optional): String, 1-200 characters
175
+
176
+ ### Groups
177
+
178
+ **Create/Import:**
179
+ - `code` (required): String, 1-100 characters, unique per shop
180
+ - `title` (required): String, 1-200 characters
181
+
182
+ **Update:**
183
+ - `code` (optional): String, 1-100 characters
184
+ - `title` (optional): String, 1-200 characters
185
+
186
+ ### Statuses
187
+
188
+ **Create/Import:**
189
+ - `code` (required): String, 1-100 characters, unique per shop
190
+ - `title` (required): String, 1-200 characters
191
+
192
+ **Update:**
193
+ - `code` (optional): String, 1-100 characters
194
+ - `title` (optional): String, 1-200 characters
195
+
141
196
  ### Sales History
142
197
 
143
198
  **Create:**
@@ -264,6 +319,27 @@ try {
264
319
  - `exportBrandsJson(ctx)`, `exportBrandsCsv(ctx)` - Requires read access
265
320
  - `getBrandsExampleJson()`, `getBrandsExampleCsv()` - Get import format examples (no auth required)
266
321
 
322
+ ### Categories
323
+ - `getCategories(ctx)`, `getCategory(id, ctx)` - Requires read access (viewer or higher)
324
+ - `createCategory(dto, ctx)`, `updateCategory(id, dto, ctx)`, `deleteCategory(id, ctx)` - Requires write access (editor or higher)
325
+ - `importCategoriesJson(items, ctx)`, `importCategoriesCsv(csvContent, ctx)` - Requires write access (bulk upsert by code)
326
+ - `exportCategoriesJson(ctx)`, `exportCategoriesCsv(ctx)` - Requires read access
327
+ - `getExampleCategoriesJson()`, `getExampleCategoriesCsv()` - Get import format examples (no auth required)
328
+
329
+ ### Groups
330
+ - `getGroups(ctx)`, `getGroup(id, ctx)` - Requires read access (viewer or higher)
331
+ - `createGroup(dto, ctx)`, `updateGroup(id, dto, ctx)`, `deleteGroup(id, ctx)` - Requires write access (editor or higher)
332
+ - `importGroupsJson(items, ctx)`, `importGroupsCsv(csvContent, ctx)` - Requires write access (bulk upsert by code)
333
+ - `exportGroupsJson(ctx)`, `exportGroupsCsv(ctx)` - Requires read access
334
+ - `getExampleGroupsJson()`, `getExampleGroupsCsv()` - Get import format examples (no auth required)
335
+
336
+ ### Statuses
337
+ - `getStatuses(ctx)`, `getStatus(id, ctx)` - Requires read access (viewer or higher)
338
+ - `createStatus(dto, ctx)`, `updateStatus(id, dto, ctx)`, `deleteStatus(id, ctx)` - Requires write access (editor or higher)
339
+ - `importStatusesJson(items, ctx)`, `importStatusesCsv(csvContent, ctx)` - Requires write access (bulk upsert by code)
340
+ - `exportStatusesJson(ctx)`, `exportStatusesCsv(ctx)` - Requires read access
341
+ - `getExampleStatusesJson()`, `getExampleStatusesCsv()` - Get import format examples (no auth required)
342
+
267
343
  ### Sales History
268
344
  - `getSalesHistory(ctx, query?)`, `getSalesHistoryItem(id, ctx)` - Requires read access (viewer or higher)
269
345
  - `createSalesHistory(dto, ctx)`, `updateSalesHistory(id, dto, ctx)`, `deleteSalesHistory(id, ctx)` - Requires write access (editor or higher)
@@ -304,12 +380,14 @@ All entity types, DTOs, and response types are exported:
304
380
 
305
381
  ```typescript
306
382
  import type {
307
- User, Tenant, Shop, Sku, Brand, SalesHistory,
383
+ User, Tenant, Shop, Sku, Brand, Category, Group, Status, SalesHistory,
308
384
  CreateUserDto, CreateTenantDto, CreateShopDto,
309
- CreateSkuRequest, CreateBrandRequest,
385
+ CreateSkuRequest, CreateBrandRequest, CreateCategoryRequest,
386
+ CreateGroupRequest, CreateStatusRequest,
310
387
  ShopContextParams, PeriodQuery,
311
388
  UserWithRolesAndTenants, ImportResult,
312
- SkuExportItem, BrandExportItem
389
+ SkuExportItem, BrandExportItem, CategoryExportItem,
390
+ GroupExportItem, StatusExportItem
313
391
  } from '@sales-planner/http-client';
314
392
  ```
315
393
 
@@ -0,0 +1,16 @@
1
+ import type { Category, CreateCategoryRequest, UpdateCategoryDto, ImportCategoryItem, CategoryExportItem, ImportResult, ShopContextParams } from '@sales-planner/shared';
2
+ import { ImportExportBaseClient } from './import-export-base-client.js';
3
+ export declare class CategoriesClient extends ImportExportBaseClient {
4
+ getCategories(ctx: ShopContextParams): Promise<Category[]>;
5
+ getCategory(id: number, ctx: ShopContextParams): Promise<Category>;
6
+ createCategory(dto: CreateCategoryRequest, ctx: ShopContextParams): Promise<Category>;
7
+ updateCategory(id: number, dto: UpdateCategoryDto, ctx: ShopContextParams): Promise<Category>;
8
+ deleteCategory(id: number, ctx: ShopContextParams): Promise<void>;
9
+ importCategoriesJson(items: ImportCategoryItem[], ctx: ShopContextParams): Promise<ImportResult>;
10
+ importCategoriesCsv(csvContent: string, ctx: ShopContextParams): Promise<ImportResult>;
11
+ exportCategoriesJson(ctx: ShopContextParams): Promise<CategoryExportItem[]>;
12
+ exportCategoriesCsv(ctx: ShopContextParams): Promise<string>;
13
+ getExampleCategoriesJson(ctx: ShopContextParams): Promise<CategoryExportItem[]>;
14
+ getExampleCategoriesCsv(ctx: ShopContextParams): Promise<string>;
15
+ }
16
+ //# sourceMappingURL=categories-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categories-client.d.ts","sourceRoot":"","sources":["../../src/clients/categories-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,qBAAa,gBAAiB,SAAQ,sBAAsB;IACpD,aAAa,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI1D,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlE,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrF,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7F,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKjE,oBAAoB,CACxB,KAAK,EAAE,kBAAkB,EAAE,EAC3B,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,YAAY,CAAC;IAIlB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAItF,oBAAoB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI3E,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5D,wBAAwB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI/E,uBAAuB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;CAGvE"}
@@ -0,0 +1,37 @@
1
+ import { ImportExportBaseClient } from './import-export-base-client.js';
2
+ export class CategoriesClient extends ImportExportBaseClient {
3
+ async getCategories(ctx) {
4
+ return this.request('GET', '/categories', { params: ctx });
5
+ }
6
+ async getCategory(id, ctx) {
7
+ return this.request('GET', `/categories/${id}`, { params: ctx });
8
+ }
9
+ async createCategory(dto, ctx) {
10
+ return this.request('POST', '/categories', { body: dto, params: ctx });
11
+ }
12
+ async updateCategory(id, dto, ctx) {
13
+ return this.request('PUT', `/categories/${id}`, { body: dto, params: ctx });
14
+ }
15
+ async deleteCategory(id, ctx) {
16
+ return this.request('DELETE', `/categories/${id}`, { params: ctx });
17
+ }
18
+ // Import/Export methods
19
+ async importCategoriesJson(items, ctx) {
20
+ return this.request('POST', '/categories/import/json', { body: items, params: ctx });
21
+ }
22
+ async importCategoriesCsv(csvContent, ctx) {
23
+ return this.uploadCsv('/categories/import/csv', csvContent, ctx);
24
+ }
25
+ async exportCategoriesJson(ctx) {
26
+ return this.request('GET', '/categories/export/json', { params: ctx });
27
+ }
28
+ async exportCategoriesCsv(ctx) {
29
+ return this.requestText('GET', '/categories/export/csv', { params: ctx });
30
+ }
31
+ async getExampleCategoriesJson(ctx) {
32
+ return this.requestPublic('GET', '/categories/examples/json');
33
+ }
34
+ async getExampleCategoriesCsv(ctx) {
35
+ return this.requestTextPublic('GET', '/categories/examples/csv');
36
+ }
37
+ }
@@ -0,0 +1,16 @@
1
+ import type { Group, CreateGroupRequest, UpdateGroupDto, ImportGroupItem, GroupExportItem, ImportResult, ShopContextParams } from '@sales-planner/shared';
2
+ import { ImportExportBaseClient } from './import-export-base-client.js';
3
+ export declare class GroupsClient extends ImportExportBaseClient {
4
+ getGroups(ctx: ShopContextParams): Promise<Group[]>;
5
+ getGroup(id: number, ctx: ShopContextParams): Promise<Group>;
6
+ createGroup(dto: CreateGroupRequest, ctx: ShopContextParams): Promise<Group>;
7
+ updateGroup(id: number, dto: UpdateGroupDto, ctx: ShopContextParams): Promise<Group>;
8
+ deleteGroup(id: number, ctx: ShopContextParams): Promise<void>;
9
+ importGroupsJson(items: ImportGroupItem[], ctx: ShopContextParams): Promise<ImportResult>;
10
+ importGroupsCsv(csvContent: string, ctx: ShopContextParams): Promise<ImportResult>;
11
+ exportGroupsJson(ctx: ShopContextParams): Promise<GroupExportItem[]>;
12
+ exportGroupsCsv(ctx: ShopContextParams): Promise<string>;
13
+ getExampleGroupsJson(ctx: ShopContextParams): Promise<GroupExportItem[]>;
14
+ getExampleGroupsCsv(ctx: ShopContextParams): Promise<string>;
15
+ }
16
+ //# sourceMappingURL=groups-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups-client.d.ts","sourceRoot":"","sources":["../../src/clients/groups-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,qBAAa,YAAa,SAAQ,sBAAsB;IAChD,SAAS,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAInD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC;IAI5D,WAAW,CAAC,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC;IAI5E,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpF,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,gBAAgB,CACpB,KAAK,EAAE,eAAe,EAAE,EACxB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,YAAY,CAAC;IAIlB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlF,gBAAgB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIpE,eAAe,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxD,oBAAoB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIxE,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;CAGnE"}
@@ -0,0 +1,37 @@
1
+ import { ImportExportBaseClient } from './import-export-base-client.js';
2
+ export class GroupsClient extends ImportExportBaseClient {
3
+ async getGroups(ctx) {
4
+ return this.request('GET', '/groups', { params: ctx });
5
+ }
6
+ async getGroup(id, ctx) {
7
+ return this.request('GET', `/groups/${id}`, { params: ctx });
8
+ }
9
+ async createGroup(dto, ctx) {
10
+ return this.request('POST', '/groups', { body: dto, params: ctx });
11
+ }
12
+ async updateGroup(id, dto, ctx) {
13
+ return this.request('PUT', `/groups/${id}`, { body: dto, params: ctx });
14
+ }
15
+ async deleteGroup(id, ctx) {
16
+ return this.request('DELETE', `/groups/${id}`, { params: ctx });
17
+ }
18
+ // Import/Export methods
19
+ async importGroupsJson(items, ctx) {
20
+ return this.request('POST', '/groups/import/json', { body: items, params: ctx });
21
+ }
22
+ async importGroupsCsv(csvContent, ctx) {
23
+ return this.uploadCsv('/groups/import/csv', csvContent, ctx);
24
+ }
25
+ async exportGroupsJson(ctx) {
26
+ return this.request('GET', '/groups/export/json', { params: ctx });
27
+ }
28
+ async exportGroupsCsv(ctx) {
29
+ return this.requestText('GET', '/groups/export/csv', { params: ctx });
30
+ }
31
+ async getExampleGroupsJson(ctx) {
32
+ return this.requestPublic('GET', '/groups/examples/json');
33
+ }
34
+ async getExampleGroupsCsv(ctx) {
35
+ return this.requestTextPublic('GET', '/groups/examples/csv');
36
+ }
37
+ }
@@ -6,6 +6,10 @@ import { TenantsClient } from './tenants-client.js';
6
6
  import { ShopsClient } from './shops-client.js';
7
7
  import { SkusClient } from './skus-client.js';
8
8
  import { BrandsClient } from './brands-client.js';
9
+ import { CategoriesClient } from './categories-client.js';
10
+ import { GroupsClient } from './groups-client.js';
11
+ import { StatusesClient } from './statuses-client.js';
12
+ import { SuppliersClient } from './suppliers-client.js';
9
13
  import { SalesHistoryClient } from './sales-history-client.js';
10
14
  import { MarketplacesClient } from './marketplaces-client.js';
11
15
  import { RolesClient } from './roles-client.js';
@@ -20,6 +24,10 @@ export declare class SalesPlannerClient {
20
24
  readonly shops: ShopsClient;
21
25
  readonly skus: SkusClient;
22
26
  readonly brands: BrandsClient;
27
+ readonly categories: CategoriesClient;
28
+ readonly groups: GroupsClient;
29
+ readonly statuses: StatusesClient;
30
+ readonly suppliers: SuppliersClient;
23
31
  readonly salesHistory: SalesHistoryClient;
24
32
  readonly marketplaces: MarketplacesClient;
25
33
  readonly roles: RolesClient;
@@ -63,6 +71,46 @@ export declare class SalesPlannerClient {
63
71
  importBrandsCsv: (csvContent: Parameters<BrandsClient["importBrandsCsv"]>[0], ctx: Parameters<BrandsClient["importBrandsCsv"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
64
72
  exportBrandsJson: (ctx: Parameters<BrandsClient["exportBrandsJson"]>[0]) => Promise<import("@sales-planner/shared").BrandExportItem[]>;
65
73
  exportBrandsCsv: (ctx: Parameters<BrandsClient["exportBrandsCsv"]>[0]) => Promise<string>;
74
+ getCategories: (ctx: Parameters<CategoriesClient["getCategories"]>[0]) => Promise<import("@sales-planner/shared").Category[]>;
75
+ getCategory: (id: number, ctx: Parameters<CategoriesClient["getCategory"]>[1]) => Promise<import("@sales-planner/shared").Category>;
76
+ createCategory: (dto: Parameters<CategoriesClient["createCategory"]>[0], ctx: Parameters<CategoriesClient["createCategory"]>[1]) => Promise<import("@sales-planner/shared").Category>;
77
+ updateCategory: (id: number, dto: Parameters<CategoriesClient["updateCategory"]>[1], ctx: Parameters<CategoriesClient["updateCategory"]>[2]) => Promise<import("@sales-planner/shared").Category>;
78
+ deleteCategory: (id: number, ctx: Parameters<CategoriesClient["deleteCategory"]>[1]) => Promise<void>;
79
+ importCategoriesJson: (items: Parameters<CategoriesClient["importCategoriesJson"]>[0], ctx: Parameters<CategoriesClient["importCategoriesJson"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
80
+ importCategoriesCsv: (csvContent: Parameters<CategoriesClient["importCategoriesCsv"]>[0], ctx: Parameters<CategoriesClient["importCategoriesCsv"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
81
+ exportCategoriesJson: (ctx: Parameters<CategoriesClient["exportCategoriesJson"]>[0]) => Promise<import("@sales-planner/shared").CategoryExportItem[]>;
82
+ exportCategoriesCsv: (ctx: Parameters<CategoriesClient["exportCategoriesCsv"]>[0]) => Promise<string>;
83
+ getGroups: (ctx: Parameters<GroupsClient["getGroups"]>[0]) => Promise<import("@sales-planner/shared").Group[]>;
84
+ getGroup: (id: number, ctx: Parameters<GroupsClient["getGroup"]>[1]) => Promise<import("@sales-planner/shared").Group>;
85
+ createGroup: (dto: Parameters<GroupsClient["createGroup"]>[0], ctx: Parameters<GroupsClient["createGroup"]>[1]) => Promise<import("@sales-planner/shared").Group>;
86
+ updateGroup: (id: number, dto: Parameters<GroupsClient["updateGroup"]>[1], ctx: Parameters<GroupsClient["updateGroup"]>[2]) => Promise<import("@sales-planner/shared").Group>;
87
+ deleteGroup: (id: number, ctx: Parameters<GroupsClient["deleteGroup"]>[1]) => Promise<void>;
88
+ importGroupsJson: (items: Parameters<GroupsClient["importGroupsJson"]>[0], ctx: Parameters<GroupsClient["importGroupsJson"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
89
+ importGroupsCsv: (csvContent: Parameters<GroupsClient["importGroupsCsv"]>[0], ctx: Parameters<GroupsClient["importGroupsCsv"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
90
+ exportGroupsJson: (ctx: Parameters<GroupsClient["exportGroupsJson"]>[0]) => Promise<import("@sales-planner/shared").GroupExportItem[]>;
91
+ exportGroupsCsv: (ctx: Parameters<GroupsClient["exportGroupsCsv"]>[0]) => Promise<string>;
92
+ getStatuses: (ctx: Parameters<StatusesClient["getStatuses"]>[0]) => Promise<import("@sales-planner/shared").Status[]>;
93
+ getStatus: (id: number, ctx: Parameters<StatusesClient["getStatus"]>[1]) => Promise<import("@sales-planner/shared").Status>;
94
+ createStatus: (dto: Parameters<StatusesClient["createStatus"]>[0], ctx: Parameters<StatusesClient["createStatus"]>[1]) => Promise<import("@sales-planner/shared").Status>;
95
+ updateStatus: (id: number, dto: Parameters<StatusesClient["updateStatus"]>[1], ctx: Parameters<StatusesClient["updateStatus"]>[2]) => Promise<import("@sales-planner/shared").Status>;
96
+ deleteStatus: (id: number, ctx: Parameters<StatusesClient["deleteStatus"]>[1]) => Promise<void>;
97
+ importStatusesJson: (items: Parameters<StatusesClient["importStatusesJson"]>[0], ctx: Parameters<StatusesClient["importStatusesJson"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
98
+ importStatusesCsv: (csvContent: Parameters<StatusesClient["importStatusesCsv"]>[0], ctx: Parameters<StatusesClient["importStatusesCsv"]>[1]) => Promise<import("@sales-planner/shared").ImportResult>;
99
+ exportStatusesJson: (ctx: Parameters<StatusesClient["exportStatusesJson"]>[0]) => Promise<import("@sales-planner/shared").StatusExportItem[]>;
100
+ exportStatusesCsv: (ctx: Parameters<StatusesClient["exportStatusesCsv"]>[0]) => Promise<string>;
101
+ getSuppliers: (ctx: Parameters<SuppliersClient["getSuppliers"]>[0]) => Promise<import("@sales-planner/shared").Supplier[]>;
102
+ getSupplier: (id: number, ctx: Parameters<SuppliersClient["getSupplier"]>[1]) => Promise<import("@sales-planner/shared").Supplier>;
103
+ createSupplier: (dto: Parameters<SuppliersClient["createSupplier"]>[0], ctx: Parameters<SuppliersClient["createSupplier"]>[1]) => Promise<import("@sales-planner/shared").Supplier>;
104
+ updateSupplier: (id: number, dto: Parameters<SuppliersClient["updateSupplier"]>[1], ctx: Parameters<SuppliersClient["updateSupplier"]>[2]) => Promise<import("@sales-planner/shared").Supplier>;
105
+ deleteSupplier: (id: number, ctx: Parameters<SuppliersClient["deleteSupplier"]>[1]) => Promise<{
106
+ success: boolean;
107
+ }>;
108
+ importSuppliersJson: (items: Parameters<SuppliersClient["importSuppliersJson"]>[0], ctx: Parameters<SuppliersClient["importSuppliersJson"]>[1]) => Promise<import("./suppliers-client.js").ImportResult>;
109
+ importSuppliersCsv: (csvContent: Parameters<SuppliersClient["importSuppliersCsv"]>[0], ctx: Parameters<SuppliersClient["importSuppliersCsv"]>[1]) => Promise<import("./suppliers-client.js").ImportResult>;
110
+ exportSuppliersJson: (ctx: Parameters<SuppliersClient["exportSuppliersJson"]>[0]) => Promise<import("./suppliers-client.js").SupplierExportItem[]>;
111
+ exportSuppliersCsv: (ctx: Parameters<SuppliersClient["exportSuppliersCsv"]>[0]) => Promise<string>;
112
+ getSupplierExamplesJson: () => Promise<import("./suppliers-client.js").SupplierExportItem[]>;
113
+ getSupplierExamplesCsv: () => Promise<string>;
66
114
  getSalesHistory: (ctx: Parameters<SalesHistoryClient["getSalesHistory"]>[0], query?: Parameters<SalesHistoryClient["getSalesHistory"]>[1]) => Promise<import("@sales-planner/shared").SalesHistory[]>;
67
115
  getSalesHistoryItem: (id: number, ctx: Parameters<SalesHistoryClient["getSalesHistoryItem"]>[1]) => Promise<import("@sales-planner/shared").SalesHistory>;
68
116
  createSalesHistory: (dto: Parameters<SalesHistoryClient["createSalesHistory"]>[0], ctx: Parameters<SalesHistoryClient["createSalesHistory"]>[1]) => Promise<import("@sales-planner/shared").SalesHistory>;
@@ -1 +1 @@
1
- {"version":3,"file":"sales-planner-client.d.ts","sourceRoot":"","sources":["../../src/clients/sales-planner-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAS;IAGxB,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC1C,QA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;IAC9D,sBAAsB,GAAI,KAAK,UAAU,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,sEAC1C;IAChD,qBAAqB,GAAI,KAAK,UAAU,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,qBACzC;IAC/C,0BAA0B,yEAAwD;IAClF,yBAAyB,wBAAuD;IAChF,QAAQ,wDAA+B;IACvC,OAAO,GAAI,IAAI,MAAM,mDAA4B;IACjD,UAAU,GAAI,KAAK,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,mDAAgC;IAC3F,UAAU,GAAI,IAAI,MAAM,EAAE,KAAK,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,mDACtC;IACjC,UAAU,GAAI,IAAI,MAAM,mBAA+B;IACvD,cAAc,GAAI,KAAK,UAAU,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,mBAClC;IACrC,cAAc,GAAI,IAAI,MAAM,mBAAuC;IACnE,UAAU,GAAI,SAAS,MAAM,uDAAqC;IAClE,YAAY,GAAI,KAAK,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,qDAChC;IACjC,YAAY,GAAI,IAAI,MAAM,mBAAmC;IAGvD,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAQ1B,SAAS,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAOhE"}
@@ -6,6 +6,10 @@ import { TenantsClient } from './tenants-client.js';
6
6
  import { ShopsClient } from './shops-client.js';
7
7
  import { SkusClient } from './skus-client.js';
8
8
  import { BrandsClient } from './brands-client.js';
9
+ import { CategoriesClient } from './categories-client.js';
10
+ import { GroupsClient } from './groups-client.js';
11
+ import { StatusesClient } from './statuses-client.js';
12
+ import { SuppliersClient } from './suppliers-client.js';
9
13
  import { SalesHistoryClient } from './sales-history-client.js';
10
14
  import { MarketplacesClient } from './marketplaces-client.js';
11
15
  import { RolesClient } from './roles-client.js';
@@ -21,6 +25,10 @@ export class SalesPlannerClient {
21
25
  shops;
22
26
  skus;
23
27
  brands;
28
+ categories;
29
+ groups;
30
+ statuses;
31
+ suppliers;
24
32
  salesHistory;
25
33
  marketplaces;
26
34
  roles;
@@ -35,6 +43,10 @@ export class SalesPlannerClient {
35
43
  this.shops = new ShopsClient(config);
36
44
  this.skus = new SkusClient(config);
37
45
  this.brands = new BrandsClient(config);
46
+ this.categories = new CategoriesClient(config);
47
+ this.groups = new GroupsClient(config);
48
+ this.statuses = new StatusesClient(config);
49
+ this.suppliers = new SuppliersClient(config);
38
50
  this.salesHistory = new SalesHistoryClient(config);
39
51
  this.marketplaces = new MarketplacesClient(config);
40
52
  this.roles = new RolesClient(config);
@@ -79,6 +91,44 @@ export class SalesPlannerClient {
79
91
  importBrandsCsv = (csvContent, ctx) => this.brands.importBrandsCsv(csvContent, ctx);
80
92
  exportBrandsJson = (ctx) => this.brands.exportBrandsJson(ctx);
81
93
  exportBrandsCsv = (ctx) => this.brands.exportBrandsCsv(ctx);
94
+ getCategories = (ctx) => this.categories.getCategories(ctx);
95
+ getCategory = (id, ctx) => this.categories.getCategory(id, ctx);
96
+ createCategory = (dto, ctx) => this.categories.createCategory(dto, ctx);
97
+ updateCategory = (id, dto, ctx) => this.categories.updateCategory(id, dto, ctx);
98
+ deleteCategory = (id, ctx) => this.categories.deleteCategory(id, ctx);
99
+ importCategoriesJson = (items, ctx) => this.categories.importCategoriesJson(items, ctx);
100
+ importCategoriesCsv = (csvContent, ctx) => this.categories.importCategoriesCsv(csvContent, ctx);
101
+ exportCategoriesJson = (ctx) => this.categories.exportCategoriesJson(ctx);
102
+ exportCategoriesCsv = (ctx) => this.categories.exportCategoriesCsv(ctx);
103
+ getGroups = (ctx) => this.groups.getGroups(ctx);
104
+ getGroup = (id, ctx) => this.groups.getGroup(id, ctx);
105
+ createGroup = (dto, ctx) => this.groups.createGroup(dto, ctx);
106
+ updateGroup = (id, dto, ctx) => this.groups.updateGroup(id, dto, ctx);
107
+ deleteGroup = (id, ctx) => this.groups.deleteGroup(id, ctx);
108
+ importGroupsJson = (items, ctx) => this.groups.importGroupsJson(items, ctx);
109
+ importGroupsCsv = (csvContent, ctx) => this.groups.importGroupsCsv(csvContent, ctx);
110
+ exportGroupsJson = (ctx) => this.groups.exportGroupsJson(ctx);
111
+ exportGroupsCsv = (ctx) => this.groups.exportGroupsCsv(ctx);
112
+ getStatuses = (ctx) => this.statuses.getStatuses(ctx);
113
+ getStatus = (id, ctx) => this.statuses.getStatus(id, ctx);
114
+ createStatus = (dto, ctx) => this.statuses.createStatus(dto, ctx);
115
+ updateStatus = (id, dto, ctx) => this.statuses.updateStatus(id, dto, ctx);
116
+ deleteStatus = (id, ctx) => this.statuses.deleteStatus(id, ctx);
117
+ importStatusesJson = (items, ctx) => this.statuses.importStatusesJson(items, ctx);
118
+ importStatusesCsv = (csvContent, ctx) => this.statuses.importStatusesCsv(csvContent, ctx);
119
+ exportStatusesJson = (ctx) => this.statuses.exportStatusesJson(ctx);
120
+ exportStatusesCsv = (ctx) => this.statuses.exportStatusesCsv(ctx);
121
+ getSuppliers = (ctx) => this.suppliers.getSuppliers(ctx);
122
+ getSupplier = (id, ctx) => this.suppliers.getSupplier(id, ctx);
123
+ createSupplier = (dto, ctx) => this.suppliers.createSupplier(dto, ctx);
124
+ updateSupplier = (id, dto, ctx) => this.suppliers.updateSupplier(id, dto, ctx);
125
+ deleteSupplier = (id, ctx) => this.suppliers.deleteSupplier(id, ctx);
126
+ importSuppliersJson = (items, ctx) => this.suppliers.importSuppliersJson(items, ctx);
127
+ importSuppliersCsv = (csvContent, ctx) => this.suppliers.importSuppliersCsv(csvContent, ctx);
128
+ exportSuppliersJson = (ctx) => this.suppliers.exportSuppliersJson(ctx);
129
+ exportSuppliersCsv = (ctx) => this.suppliers.exportSuppliersCsv(ctx);
130
+ getSupplierExamplesJson = () => this.suppliers.getSupplierExamplesJson();
131
+ getSupplierExamplesCsv = () => this.suppliers.getSupplierExamplesCsv();
82
132
  getSalesHistory = (ctx, query) => this.salesHistory.getSalesHistory(ctx, query);
83
133
  getSalesHistoryItem = (id, ctx) => this.salesHistory.getSalesHistoryItem(id, ctx);
84
134
  createSalesHistory = (dto, ctx) => this.salesHistory.createSalesHistory(dto, ctx);
@@ -0,0 +1,16 @@
1
+ import type { Status, CreateStatusRequest, UpdateStatusDto, ImportStatusItem, StatusExportItem, ImportResult, ShopContextParams } from '@sales-planner/shared';
2
+ import { ImportExportBaseClient } from './import-export-base-client.js';
3
+ export declare class StatusesClient extends ImportExportBaseClient {
4
+ getStatuses(ctx: ShopContextParams): Promise<Status[]>;
5
+ getStatus(id: number, ctx: ShopContextParams): Promise<Status>;
6
+ createStatus(dto: CreateStatusRequest, ctx: ShopContextParams): Promise<Status>;
7
+ updateStatus(id: number, dto: UpdateStatusDto, ctx: ShopContextParams): Promise<Status>;
8
+ deleteStatus(id: number, ctx: ShopContextParams): Promise<void>;
9
+ importStatusesJson(items: ImportStatusItem[], ctx: ShopContextParams): Promise<ImportResult>;
10
+ importStatusesCsv(csvContent: string, ctx: ShopContextParams): Promise<ImportResult>;
11
+ exportStatusesJson(ctx: ShopContextParams): Promise<StatusExportItem[]>;
12
+ exportStatusesCsv(ctx: ShopContextParams): Promise<string>;
13
+ getExampleStatusesJson(ctx: ShopContextParams): Promise<StatusExportItem[]>;
14
+ getExampleStatusesCsv(ctx: ShopContextParams): Promise<string>;
15
+ }
16
+ //# sourceMappingURL=statuses-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statuses-client.d.ts","sourceRoot":"","sources":["../../src/clients/statuses-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,qBAAa,cAAe,SAAQ,sBAAsB;IAClD,WAAW,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAItD,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9D,YAAY,CAAC,GAAG,EAAE,mBAAmB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/E,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK/D,kBAAkB,CACtB,KAAK,EAAE,gBAAgB,EAAE,EACzB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,YAAY,CAAC;IAIlB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIpF,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1D,sBAAsB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAI3E,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;CAGrE"}
@@ -0,0 +1,37 @@
1
+ import { ImportExportBaseClient } from './import-export-base-client.js';
2
+ export class StatusesClient extends ImportExportBaseClient {
3
+ async getStatuses(ctx) {
4
+ return this.request('GET', '/statuses', { params: ctx });
5
+ }
6
+ async getStatus(id, ctx) {
7
+ return this.request('GET', `/statuses/${id}`, { params: ctx });
8
+ }
9
+ async createStatus(dto, ctx) {
10
+ return this.request('POST', '/statuses', { body: dto, params: ctx });
11
+ }
12
+ async updateStatus(id, dto, ctx) {
13
+ return this.request('PUT', `/statuses/${id}`, { body: dto, params: ctx });
14
+ }
15
+ async deleteStatus(id, ctx) {
16
+ return this.request('DELETE', `/statuses/${id}`, { params: ctx });
17
+ }
18
+ // Import/Export methods
19
+ async importStatusesJson(items, ctx) {
20
+ return this.request('POST', '/statuses/import/json', { body: items, params: ctx });
21
+ }
22
+ async importStatusesCsv(csvContent, ctx) {
23
+ return this.uploadCsv('/statuses/import/csv', csvContent, ctx);
24
+ }
25
+ async exportStatusesJson(ctx) {
26
+ return this.request('GET', '/statuses/export/json', { params: ctx });
27
+ }
28
+ async exportStatusesCsv(ctx) {
29
+ return this.requestText('GET', '/statuses/export/csv', { params: ctx });
30
+ }
31
+ async getExampleStatusesJson(ctx) {
32
+ return this.requestPublic('GET', '/statuses/examples/json');
33
+ }
34
+ async getExampleStatusesCsv(ctx) {
35
+ return this.requestTextPublic('GET', '/statuses/examples/csv');
36
+ }
37
+ }
@@ -0,0 +1,41 @@
1
+ import type { Supplier, ShopContextParams } from '@sales-planner/shared';
2
+ import { ImportExportBaseClient } from './import-export-base-client.js';
3
+ export interface CreateSupplierDto {
4
+ code: string;
5
+ title: string;
6
+ }
7
+ export interface UpdateSupplierDto {
8
+ code?: string;
9
+ title?: string;
10
+ }
11
+ export interface SupplierExportItem {
12
+ code: string;
13
+ title: string;
14
+ }
15
+ export interface ImportSuppliersJsonDto {
16
+ suppliers: CreateSupplierDto[];
17
+ }
18
+ export interface ImportResult {
19
+ created: number;
20
+ updated: number;
21
+ errors: Array<{
22
+ row: number;
23
+ error: string;
24
+ }>;
25
+ }
26
+ export declare class SuppliersClient extends ImportExportBaseClient {
27
+ getSuppliers(ctx: ShopContextParams): Promise<Supplier[]>;
28
+ getSupplier(id: number, ctx: ShopContextParams): Promise<Supplier>;
29
+ createSupplier(data: CreateSupplierDto, ctx: ShopContextParams): Promise<Supplier>;
30
+ updateSupplier(id: number, data: UpdateSupplierDto, ctx: ShopContextParams): Promise<Supplier>;
31
+ deleteSupplier(id: number, ctx: ShopContextParams): Promise<{
32
+ success: boolean;
33
+ }>;
34
+ importSuppliersJson(data: ImportSuppliersJsonDto, ctx: ShopContextParams): Promise<ImportResult>;
35
+ importSuppliersCsv(csvContent: string, ctx: ShopContextParams): Promise<ImportResult>;
36
+ exportSuppliersJson(ctx: ShopContextParams): Promise<SupplierExportItem[]>;
37
+ exportSuppliersCsv(ctx: ShopContextParams): Promise<string>;
38
+ getSupplierExamplesJson(): Promise<SupplierExportItem[]>;
39
+ getSupplierExamplesCsv(): Promise<string>;
40
+ }
41
+ //# sourceMappingURL=suppliers-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suppliers-client.d.ts","sourceRoot":"","sources":["../../src/clients/suppliers-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C;AAED,qBAAa,eAAgB,SAAQ,sBAAsB;IACnD,YAAY,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIzD,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlE,cAAc,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlF,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,QAAQ,CAAC;IAId,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAIjF,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIhG,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIrF,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI1E,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3D,uBAAuB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIxD,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;CAGhD"}
@@ -0,0 +1,36 @@
1
+ import { ImportExportBaseClient } from './import-export-base-client.js';
2
+ export class SuppliersClient extends ImportExportBaseClient {
3
+ async getSuppliers(ctx) {
4
+ return this.request('GET', '/suppliers', { params: ctx });
5
+ }
6
+ async getSupplier(id, ctx) {
7
+ return this.request('GET', `/suppliers/${id}`, { params: ctx });
8
+ }
9
+ async createSupplier(data, ctx) {
10
+ return this.request('POST', '/suppliers', { params: ctx, body: data });
11
+ }
12
+ async updateSupplier(id, data, ctx) {
13
+ return this.request('PUT', `/suppliers/${id}`, { params: ctx, body: data });
14
+ }
15
+ async deleteSupplier(id, ctx) {
16
+ return this.request('DELETE', `/suppliers/${id}`, { params: ctx });
17
+ }
18
+ async importSuppliersJson(data, ctx) {
19
+ return this.request('POST', '/suppliers/import/json', { params: ctx, body: data });
20
+ }
21
+ async importSuppliersCsv(csvContent, ctx) {
22
+ return this.uploadCsv('/suppliers/import/csv', csvContent, ctx);
23
+ }
24
+ async exportSuppliersJson(ctx) {
25
+ return this.request('GET', '/suppliers/export/json', { params: ctx });
26
+ }
27
+ async exportSuppliersCsv(ctx) {
28
+ return this.requestText('GET', '/suppliers/export/csv', { params: ctx });
29
+ }
30
+ async getSupplierExamplesJson() {
31
+ return this.requestPublic('GET', '/suppliers/examples/json');
32
+ }
33
+ async getSupplierExamplesCsv() {
34
+ return this.requestTextPublic('GET', '/suppliers/examples/csv');
35
+ }
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sales-planner/http-client",
3
- "version": "0.9.3",
3
+ "version": "0.11.0",
4
4
  "description": "HTTP client for Sales Planner API",
5
5
  "author": "Damir Manapov",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "README.md"
25
25
  ],
26
26
  "dependencies": {
27
- "@sales-planner/shared": "0.9.3"
27
+ "@sales-planner/shared": "0.11.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.7.3"