@sales-planner/shared 0.4.3 → 0.5.1

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 (42) hide show
  1. package/README.md +46 -5
  2. package/dist/dto/api-keys.d.ts +12 -0
  3. package/dist/dto/api-keys.d.ts.map +1 -0
  4. package/dist/dto/api-keys.js +1 -0
  5. package/dist/dto/index.d.ts +19 -0
  6. package/dist/dto/index.d.ts.map +1 -0
  7. package/dist/dto/index.js +18 -0
  8. package/dist/dto/marketplaces.d.ts +19 -0
  9. package/dist/dto/marketplaces.d.ts.map +1 -0
  10. package/dist/dto/marketplaces.js +1 -0
  11. package/dist/dto/roles.d.ts +11 -0
  12. package/dist/dto/roles.d.ts.map +1 -0
  13. package/dist/dto/roles.js +1 -0
  14. package/dist/dto/sales-history.d.ts +25 -0
  15. package/dist/dto/sales-history.d.ts.map +1 -0
  16. package/dist/dto/sales-history.js +1 -0
  17. package/dist/dto/shops.d.ts +10 -0
  18. package/dist/dto/shops.d.ts.map +1 -0
  19. package/dist/dto/shops.js +1 -0
  20. package/dist/dto/skus.d.ts +20 -0
  21. package/dist/dto/skus.d.ts.map +1 -0
  22. package/dist/dto/skus.js +1 -0
  23. package/dist/dto/tenants.d.ts +21 -0
  24. package/dist/dto/tenants.d.ts.map +1 -0
  25. package/dist/dto/tenants.js +1 -0
  26. package/dist/dto/user-roles.d.ts +8 -0
  27. package/dist/dto/user-roles.d.ts.map +1 -0
  28. package/dist/dto/user-roles.js +1 -0
  29. package/dist/dto/users.d.ts +13 -0
  30. package/dist/dto/users.d.ts.map +1 -0
  31. package/dist/dto/users.js +1 -0
  32. package/dist/dto.d.ts +112 -47
  33. package/dist/dto.d.ts.map +1 -1
  34. package/dist/dto.js +6 -0
  35. package/dist/entities.d.ts +2 -0
  36. package/dist/entities.d.ts.map +1 -1
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/responses.d.ts +5 -0
  41. package/dist/responses.d.ts.map +1 -1
  42. package/package.json +1 -1
package/README.md CHANGED
@@ -16,17 +16,58 @@ pnpm add @sales-planner/shared
16
16
 
17
17
  This package provides TypeScript types only (no runtime code). Types are the single source of truth and are validated at compile-time against the API's Zod schemas.
18
18
 
19
+ ## Type System
20
+
21
+ The package provides two type variants for each operation:
22
+
23
+ **Request Types** - Used at HTTP boundary (may omit context fields):
24
+ ```typescript
25
+ export interface CreateSkuRequest {
26
+ code: string;
27
+ title: string;
28
+ // shop_id, tenant_id omitted - injected by API
29
+ }
30
+ ```
31
+
32
+ **DTO Types** - Used in service layer (full data model):
33
+ ```typescript
34
+ export interface CreateSkuDto {
35
+ code: string;
36
+ title: string;
37
+ shop_id: number;
38
+ tenant_id: number;
39
+ }
40
+ ```
41
+
42
+ For entities where Request and DTO are identical, Request is a type alias:
43
+ ```typescript
44
+ export interface CreateUserDto {
45
+ email: string;
46
+ name: string;
47
+ }
48
+ export type CreateUserRequest = CreateUserDto;
49
+ ```
50
+
51
+ ## Usage
52
+
19
53
  ```typescript
20
54
  import type {
21
55
  // Entities
22
56
  User, Tenant, Shop, Sku, SalesHistory,
23
57
  Role, UserRole, ApiKey, Marketplace,
24
58
 
25
- // DTOs
26
- CreateUserDto, CreateTenantDto, CreateShopDto,
27
- CreateSkuDto, UpdateSkuDto, ImportSkuItem,
28
- CreateSalesHistoryDto, UpdateSalesHistoryDto, ImportSalesHistoryItem,
29
- CreateApiKeyDto, CreateRoleDto, CreateUserRoleDto, CreateMarketplaceDto,
59
+ // Request types (HTTP layer)
60
+ CreateUserRequest, UpdateUserRequest,
61
+ CreateSkuRequest, UpdateSkuRequest,
62
+ CreateSalesHistoryRequest, UpdateSalesHistoryRequest,
63
+
64
+ // DTO types (Service layer)
65
+ CreateUserDto, UpdateUserDto,
66
+ CreateSkuDto, UpdateSkuDto,
67
+ CreateSalesHistoryDto, UpdateSalesHistoryDto,
68
+
69
+ // Import types
70
+ ImportSkuItem, ImportSalesHistoryItem, ImportMarketplaceItem,
30
71
 
31
72
  // Query types
32
73
  ShopContextParams, PeriodQuery,
@@ -0,0 +1,12 @@
1
+ export interface CreateApiKeyDto {
2
+ user_id: number;
3
+ name?: string;
4
+ expires_at?: string;
5
+ }
6
+ export type CreateApiKeyRequest = CreateApiKeyDto;
7
+ export interface UpdateApiKeyDto {
8
+ name?: string | null;
9
+ expires_at?: string | null;
10
+ }
11
+ export type UpdateApiKeyRequest = UpdateApiKeyDto;
12
+ //# sourceMappingURL=api-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../src/dto/api-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AACD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Data Transfer Objects for create/update operations
3
+ *
4
+ * Pattern:
5
+ * - CreateXDto: Full DTO with context fields (shop_id, tenant_id, etc.)
6
+ * - CreateXRequest: HTTP request type (may omit context fields if injected)
7
+ * - UpdateXDto: Update fields
8
+ * - UpdateXRequest: HTTP update request (typically same as DTO)
9
+ */
10
+ export * from './users.js';
11
+ export * from './tenants.js';
12
+ export * from './shops.js';
13
+ export * from './skus.js';
14
+ export * from './sales-history.js';
15
+ export * from './marketplaces.js';
16
+ export * from './api-keys.js';
17
+ export * from './roles.js';
18
+ export * from './user-roles.js';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Data Transfer Objects for create/update operations
3
+ *
4
+ * Pattern:
5
+ * - CreateXDto: Full DTO with context fields (shop_id, tenant_id, etc.)
6
+ * - CreateXRequest: HTTP request type (may omit context fields if injected)
7
+ * - UpdateXDto: Update fields
8
+ * - UpdateXRequest: HTTP update request (typically same as DTO)
9
+ */
10
+ export * from './users.js';
11
+ export * from './tenants.js';
12
+ export * from './shops.js';
13
+ export * from './skus.js';
14
+ export * from './sales-history.js';
15
+ export * from './marketplaces.js';
16
+ export * from './api-keys.js';
17
+ export * from './roles.js';
18
+ export * from './user-roles.js';
@@ -0,0 +1,19 @@
1
+ export interface CreateMarketplaceRequest {
2
+ id: string;
3
+ title: string;
4
+ }
5
+ export interface CreateMarketplaceDto {
6
+ id: string;
7
+ title: string;
8
+ shop_id: number;
9
+ tenant_id: number;
10
+ }
11
+ export interface UpdateMarketplaceDto {
12
+ title?: string;
13
+ }
14
+ export type UpdateMarketplaceRequest = UpdateMarketplaceDto;
15
+ export interface ImportMarketplaceItem {
16
+ id: string;
17
+ title: string;
18
+ }
19
+ //# sourceMappingURL=marketplaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplaces.d.ts","sourceRoot":"","sources":["../../src/dto/marketplaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE5D,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface CreateRoleDto {
2
+ name: string;
3
+ description?: string;
4
+ }
5
+ export type CreateRoleRequest = CreateRoleDto;
6
+ export interface UpdateRoleDto {
7
+ name?: string;
8
+ description?: string | null;
9
+ }
10
+ export type UpdateRoleRequest = UpdateRoleDto;
11
+ //# sourceMappingURL=roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/dto/roles.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ export interface CreateSalesHistoryRequest {
2
+ sku_id: number;
3
+ period: string;
4
+ quantity: number;
5
+ marketplace_id: string;
6
+ }
7
+ export interface CreateSalesHistoryDto {
8
+ sku_id: number;
9
+ shop_id: number;
10
+ tenant_id: number;
11
+ period: string;
12
+ quantity: number;
13
+ marketplace_id: string;
14
+ }
15
+ export interface UpdateSalesHistoryDto {
16
+ quantity?: number;
17
+ }
18
+ export type UpdateSalesHistoryRequest = UpdateSalesHistoryDto;
19
+ export interface ImportSalesHistoryItem {
20
+ sku_code: string;
21
+ period: string;
22
+ quantity: number;
23
+ marketplace: string;
24
+ }
25
+ //# sourceMappingURL=sales-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sales-history.d.ts","sourceRoot":"","sources":["../../src/dto/sales-history.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface CreateShopDto {
2
+ title: string;
3
+ tenant_id: number;
4
+ }
5
+ export type CreateShopRequest = CreateShopDto;
6
+ export interface UpdateShopDto {
7
+ title?: string;
8
+ }
9
+ export type UpdateShopRequest = UpdateShopDto;
10
+ //# sourceMappingURL=shops.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shops.d.ts","sourceRoot":"","sources":["../../src/dto/shops.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface CreateSkuRequest {
2
+ code: string;
3
+ title: string;
4
+ }
5
+ export interface CreateSkuDto {
6
+ code: string;
7
+ title: string;
8
+ shop_id: number;
9
+ tenant_id: number;
10
+ }
11
+ export interface UpdateSkuDto {
12
+ code?: string;
13
+ title?: string;
14
+ }
15
+ export type UpdateSkuRequest = UpdateSkuDto;
16
+ export interface ImportSkuItem {
17
+ code: string;
18
+ title: string;
19
+ }
20
+ //# sourceMappingURL=skus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../src/dto/skus.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ export interface CreateTenantDto {
2
+ title: string;
3
+ owner_id?: number;
4
+ created_by?: number;
5
+ }
6
+ export interface CreateTenantRequest {
7
+ title: string;
8
+ owner_id?: number;
9
+ }
10
+ export interface UpdateTenantDto {
11
+ title?: string;
12
+ owner_id?: number | null;
13
+ }
14
+ export type UpdateTenantRequest = UpdateTenantDto;
15
+ export interface CreateTenantWithShopDto {
16
+ tenantTitle: string;
17
+ shopTitle?: string;
18
+ userEmail: string;
19
+ userName: string;
20
+ }
21
+ //# sourceMappingURL=tenants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/dto/tenants.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AACD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface CreateUserRoleDto {
2
+ user_id: number;
3
+ role_id: number;
4
+ tenant_id?: number;
5
+ shop_id?: number;
6
+ }
7
+ export type CreateUserRoleRequest = CreateUserRoleDto;
8
+ //# sourceMappingURL=user-roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-roles.d.ts","sourceRoot":"","sources":["../../src/dto/user-roles.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface CreateUserDto {
2
+ email: string;
3
+ name: string;
4
+ default_shop_id?: number;
5
+ }
6
+ export type CreateUserRequest = CreateUserDto;
7
+ export interface UpdateUserDto {
8
+ email?: string;
9
+ name?: string;
10
+ default_shop_id?: number | null;
11
+ }
12
+ export type UpdateUserRequest = UpdateUserDto;
13
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/dto/users.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/dist/dto.d.ts CHANGED
@@ -1,75 +1,140 @@
1
1
  /**
2
2
  * Data Transfer Objects for create/update operations
3
+ *
4
+ * Pattern:
5
+ * - CreateXDto: Full DTO with context fields (shop_id, tenant_id, etc.)
6
+ * - CreateXRequest: HTTP request type (may omit context fields if injected)
7
+ * - UpdateXDto: Update fields
8
+ * - UpdateXRequest: HTTP update request (typically same as DTO)
3
9
  */
4
10
  export interface CreateUserDto {
5
- email: string;
6
- name: string;
7
- default_shop_id?: number;
11
+ email: string;
12
+ name: string;
13
+ default_shop_id?: number;
8
14
  }
15
+ export type CreateUserRequest = CreateUserDto;
16
+ export interface UpdateUserDto {
17
+ email?: string;
18
+ name?: string;
19
+ default_shop_id?: number | null;
20
+ }
21
+ export type UpdateUserRequest = UpdateUserDto;
9
22
  export interface CreateTenantDto {
10
- title: string;
11
- owner_id?: number;
12
- created_by?: number;
23
+ title: string;
24
+ owner_id?: number;
25
+ created_by?: number;
26
+ }
27
+ export interface CreateTenantRequest {
28
+ title: string;
29
+ owner_id?: number;
30
+ }
31
+ export interface UpdateTenantDto {
32
+ title?: string;
33
+ owner_id?: number | null;
13
34
  }
35
+ export type UpdateTenantRequest = UpdateTenantDto;
14
36
  export interface CreateTenantWithShopDto {
15
- tenantTitle: string;
16
- shopTitle?: string;
17
- userEmail: string;
18
- userName: string;
37
+ tenantTitle: string;
38
+ shopTitle?: string;
39
+ userEmail: string;
40
+ userName: string;
19
41
  }
20
42
  export interface CreateShopDto {
21
- title: string;
22
- tenant_id: number;
43
+ title: string;
44
+ tenant_id: number;
45
+ }
46
+ export type CreateShopRequest = CreateShopDto;
47
+ export interface UpdateShopDto {
48
+ title?: string;
49
+ }
50
+ export type UpdateShopRequest = UpdateShopDto;
51
+ export interface CreateSkuRequest {
52
+ code: string;
53
+ title: string;
23
54
  }
24
55
  export interface CreateSkuDto {
25
- code: string;
26
- title: string;
27
- shop_id: number;
28
- tenant_id: number;
56
+ code: string;
57
+ title: string;
58
+ shop_id: number;
59
+ tenant_id: number;
29
60
  }
30
61
  export interface UpdateSkuDto {
31
- code?: string;
32
- title?: string;
62
+ code?: string;
63
+ title?: string;
33
64
  }
34
- export interface ImportSkuItem {
35
- code: string;
36
- title: string;
65
+ export type UpdateSkuRequest = UpdateSkuDto;
66
+ export interface CreateSalesHistoryRequest {
67
+ sku_id: number;
68
+ period: string;
69
+ quantity: number;
70
+ marketplace_id: string;
37
71
  }
38
72
  export interface CreateSalesHistoryDto {
39
- sku_id: number;
40
- shop_id: number;
41
- tenant_id: number;
42
- period: string;
43
- quantity: number;
44
- marketplace_id: string;
73
+ sku_id: number;
74
+ shop_id: number;
75
+ tenant_id: number;
76
+ period: string;
77
+ quantity: number;
78
+ marketplace_id: string;
45
79
  }
46
80
  export interface UpdateSalesHistoryDto {
47
- quantity?: number;
81
+ quantity?: number;
48
82
  }
49
- export interface ImportSalesHistoryItem {
50
- sku_code: string;
51
- period: string;
52
- quantity: number;
53
- marketplace: string;
83
+ export type UpdateSalesHistoryRequest = UpdateSalesHistoryDto;
84
+ export interface CreateMarketplaceRequest {
85
+ id: string;
86
+ title: string;
87
+ }
88
+ export interface CreateMarketplaceDto {
89
+ id: string;
90
+ title: string;
91
+ shop_id: number;
92
+ tenant_id: number;
54
93
  }
94
+ export interface UpdateMarketplaceDto {
95
+ title?: string;
96
+ }
97
+ export type UpdateMarketplaceRequest = UpdateMarketplaceDto;
55
98
  export interface CreateApiKeyDto {
56
- user_id: number;
57
- key?: string;
58
- name?: string;
59
- expires_at?: string;
99
+ user_id: number;
100
+ name?: string;
101
+ expires_at?: string;
102
+ }
103
+ export type CreateApiKeyRequest = CreateApiKeyDto;
104
+ export interface UpdateApiKeyDto {
105
+ name?: string | null;
106
+ expires_at?: string | null;
60
107
  }
108
+ export type UpdateApiKeyRequest = UpdateApiKeyDto;
61
109
  export interface CreateRoleDto {
62
- name: string;
63
- description?: string;
110
+ name: string;
111
+ description?: string;
64
112
  }
113
+ export type CreateRoleRequest = CreateRoleDto;
114
+ export interface UpdateRoleDto {
115
+ name?: string;
116
+ description?: string | null;
117
+ }
118
+ export type UpdateRoleRequest = UpdateRoleDto;
65
119
  export interface CreateUserRoleDto {
66
- user_id: number;
67
- role_id: number;
68
- tenant_id?: number;
69
- shop_id?: number;
120
+ user_id: number;
121
+ role_id: number;
122
+ tenant_id?: number;
123
+ shop_id?: number;
70
124
  }
71
- export interface CreateMarketplaceDto {
72
- id: string;
73
- title: string;
125
+ export type CreateUserRoleRequest = CreateUserRoleDto;
126
+ export interface ImportSkuItem {
127
+ code: string;
128
+ title: string;
129
+ }
130
+ export interface ImportSalesHistoryItem {
131
+ sku_code: string;
132
+ period: string;
133
+ quantity: number;
134
+ marketplace: string;
135
+ }
136
+ export interface ImportMarketplaceItem {
137
+ id: string;
138
+ title: string;
74
139
  }
75
- //# sourceMappingURL=dto.d.ts.map
140
+ //# sourceMappingURL=dto.d.ts.map
package/dist/dto.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../src/dto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAA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9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AACD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAGlD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AACD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAG9C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAGtD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
package/dist/dto.js CHANGED
@@ -1,4 +1,10 @@
1
1
  /**
2
2
  * Data Transfer Objects for create/update operations
3
+ *
4
+ * Pattern:
5
+ * - CreateXDto: Full DTO with context fields (shop_id, tenant_id, etc.)
6
+ * - CreateXRequest: HTTP request type (may omit context fields if injected)
7
+ * - UpdateXDto: Update fields
8
+ * - UpdateXRequest: HTTP update request (typically same as DTO)
3
9
  */
4
10
  export {};
@@ -64,6 +64,8 @@ export interface ApiKey {
64
64
  export interface Marketplace {
65
65
  id: string;
66
66
  title: string;
67
+ shop_id: number;
68
+ tenant_id: number;
67
69
  created_at: Date;
68
70
  updated_at: Date;
69
71
  }
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS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C;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './entities.js';
2
- export * from './dto.js';
2
+ export * from './dto/index.js';
3
3
  export * from './responses.js';
4
4
  export * from './query.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAG9B,cAAc,UAAU,CAAC;AAGzB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAG9B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Entities
2
2
  export * from './entities.js';
3
3
  // DTOs
4
- export * from './dto.js';
4
+ export * from './dto/index.js';
5
5
  // Response types
6
6
  export * from './responses.js';
7
7
  // Query types
@@ -48,6 +48,7 @@ export interface ImportResult {
48
48
  export interface DeleteDataResult {
49
49
  skusDeleted: number;
50
50
  salesHistoryDeleted: number;
51
+ marketplacesDeleted: number;
51
52
  }
52
53
  export interface SalesHistoryExportItem {
53
54
  sku_code: string;
@@ -59,4 +60,8 @@ export interface SkuExportItem {
59
60
  code: string;
60
61
  title: string;
61
62
  }
63
+ export interface MarketplaceExportItem {
64
+ id: string;
65
+ title: string;
66
+ }
62
67
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../src/responses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI;IACnD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IACh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U,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sales-planner/shared",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "Shared types and DTOs for Sales Planner API",
5
5
  "author": "Damir Manapov",
6
6
  "license": "MIT",