@merkaly/api 0.2.5-5 → 0.2.5-7

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 (166) hide show
  1. package/.output/abstracts/abstract.entity.d.ts +14 -0
  2. package/.output/{abstract → abstracts}/abstract.validator.d.ts +13 -9
  3. package/.output/{abstract → abstracts}/abstract.validator.js +36 -23
  4. package/.output/exceptions/missing-identity.exception.js +1 -1
  5. package/.output/modules/asset/files/file.entity.d.ts +1 -2
  6. package/.output/modules/{sale/orders/item/item.schema.d.ts → asset/files/file.schema.d.ts} +9 -2
  7. package/.output/modules/asset/files/file.schema.js +10 -0
  8. package/.output/modules/auth/organizations/organization.entity.d.ts +8 -0
  9. package/.output/modules/auth/users/user.entity.d.ts +9 -0
  10. package/.output/modules/{inventory/products/schemas/variant.schema.d.ts → auth/users/user.schema.d.ts} +9 -2
  11. package/.output/modules/auth/users/user.schema.js +10 -0
  12. package/.output/modules/auth/users/user.validator.d.ts +11 -9
  13. package/.output/modules/auth/users/user.validator.js +24 -16
  14. package/.output/modules/inventory/brands/brand.entity.d.ts +1 -4
  15. package/.output/modules/inventory/brands/brand.schema.d.ts +34 -0
  16. package/.output/modules/inventory/brands/brand.schema.js +10 -0
  17. package/.output/modules/inventory/brands/brand.validator.d.ts +1 -1
  18. package/.output/modules/inventory/brands/brand.validator.js +4 -5
  19. package/.output/modules/inventory/categories/category.entity.d.ts +2 -8
  20. package/.output/modules/inventory/categories/category.schema.d.ts +34 -0
  21. package/.output/modules/inventory/categories/category.schema.js +10 -0
  22. package/.output/modules/inventory/categories/category.validator.d.ts +2 -7
  23. package/.output/modules/inventory/categories/category.validator.js +4 -50
  24. package/.output/modules/inventory/complements/complement.entity.d.ts +6 -0
  25. package/.output/modules/inventory/complements/complement.validator.d.ts +10 -0
  26. package/.output/modules/inventory/{products/validators/variant.validator.js → complements/complement.validator.js} +27 -24
  27. package/.output/modules/inventory/products/documents/attribute.document.d.ts +5 -0
  28. package/.output/modules/{sale/orders/billing/validators/customer.validator.js → inventory/products/documents/attribute.document.js} +15 -18
  29. package/.output/modules/inventory/products/{entities/dimension.entity.d.ts → documents/dimension.document.d.ts} +1 -1
  30. package/.output/modules/inventory/products/documents/dimension.document.js +35 -0
  31. package/.output/modules/inventory/products/product.entity.d.ts +11 -18
  32. package/.output/modules/inventory/products/product.schema.d.ts +34 -0
  33. package/.output/modules/inventory/products/product.schema.js +18 -0
  34. package/.output/modules/inventory/products/product.validator.d.ts +17 -26
  35. package/.output/modules/inventory/products/product.validator.js +76 -132
  36. package/.output/modules/inventory/products/validators/attributes.validator.d.ts +5 -0
  37. package/.output/modules/inventory/products/validators/{seo.validator.js → attributes.validator.js} +14 -13
  38. package/.output/modules/inventory/products/validators/dimension.validator.d.ts +5 -5
  39. package/.output/modules/inventory/products/validators/dimension.validator.js +16 -21
  40. package/.output/modules/sale/customers/customer.entity.d.ts +7 -11
  41. package/.output/modules/sale/customers/customer.schema.d.ts +34 -0
  42. package/.output/modules/sale/customers/customer.schema.js +10 -0
  43. package/.output/modules/sale/customers/customer.validator.d.ts +9 -13
  44. package/.output/modules/sale/customers/customer.validator.js +26 -39
  45. package/.output/modules/sale/orders/documents/address.document.d.ts +8 -0
  46. package/.output/modules/sale/orders/documents/address.document.js +43 -0
  47. package/.output/modules/sale/orders/documents/status.document.d.ts +8 -0
  48. package/.output/modules/sale/orders/{shipping/validators/customer.validator.js → documents/status.document.js} +17 -19
  49. package/.output/modules/sale/orders/entities/item.entity.d.ts +38 -0
  50. package/.output/modules/sale/orders/{status/status.validator.d.ts → enums/order.status.d.ts} +1 -3
  51. package/.output/modules/sale/orders/enums/order.status.js +10 -0
  52. package/.output/modules/sale/orders/order.entity.d.ts +16 -16
  53. package/.output/modules/sale/orders/order.validator.d.ts +11 -23
  54. package/.output/modules/sale/orders/order.validator.js +26 -80
  55. package/.output/modules/sale/orders/validators/address.validator.d.ts +17 -0
  56. package/.output/modules/sale/orders/validators/address.validator.js +81 -0
  57. package/.output/modules/sale/orders/validators/billing.validator.d.ts +8 -0
  58. package/.output/modules/sale/orders/validators/billing.validator.js +13 -0
  59. package/.output/modules/sale/orders/{item → validators}/item.validator.d.ts +2 -1
  60. package/.output/modules/sale/orders/{item → validators}/item.validator.js +11 -8
  61. package/.output/modules/sale/orders/validators/payment.validator.d.ts +10 -0
  62. package/.output/modules/sale/orders/validators/payment.validator.js +62 -0
  63. package/.output/modules/sale/orders/validators/shipping.validator.d.ts +9 -0
  64. package/.output/modules/sale/orders/validators/shipping.validator.js +14 -0
  65. package/.output/modules/sale/payments/entities/status.entity.d.ts +8 -0
  66. package/.output/modules/sale/payments/enums/billing.type.d.ts +6 -0
  67. package/.output/modules/sale/payments/enums/billing.type.js +10 -0
  68. package/.output/modules/sale/payments/enums/payment.status.d.ts +7 -0
  69. package/.output/modules/sale/payments/enums/payment.status.js +11 -0
  70. package/.output/modules/sale/payments/enums/shipping.type.d.ts +4 -0
  71. package/.output/modules/sale/payments/enums/shipping.type.js +8 -0
  72. package/.output/modules/sale/payments/payment.entity.d.ts +12 -0
  73. package/.output/modules/sale/payments/payment.schema.d.ts +34 -0
  74. package/.output/modules/sale/payments/payment.schema.js +14 -0
  75. package/.output/modules/sale/payments/payment.validator.d.ts +16 -0
  76. package/.output/modules/sale/payments/payment.validator.js +77 -0
  77. package/.output/tsconfig.package.tsbuildinfo +1 -0
  78. package/package.json +69 -78
  79. package/.output/abstract/abstract.entity.d.ts +0 -9
  80. package/.output/abstract/abstract.exception.d.ts +0 -11
  81. package/.output/abstract/abstract.exception.js +0 -53
  82. package/.output/abstract/abstract.fixture.d.ts +0 -4
  83. package/.output/abstract/abstract.fixture.js +0 -11
  84. package/.output/exceptions/store-not-implemented.exception.d.ts +0 -5
  85. package/.output/exceptions/store-not-implemented.exception.js +0 -31
  86. package/.output/exceptions/store-not-recognized.exception.d.ts +0 -5
  87. package/.output/exceptions/store-not-recognized.exception.js +0 -30
  88. package/.output/modules/auth/auth.types.d.ts +0 -3
  89. package/.output/modules/auth/auth.types.js +0 -7
  90. package/.output/modules/config/organization/organization.entity.d.ts +0 -21
  91. package/.output/modules/config/organization/organization.types.d.ts +0 -23
  92. package/.output/modules/config/organization/organization.types.js +0 -107
  93. package/.output/modules/config/organization/organization.validator.d.ts +0 -18
  94. package/.output/modules/config/organization/organization.validator.js +0 -88
  95. package/.output/modules/insight/validators/order.validator.d.ts +0 -4
  96. package/.output/modules/insight/validators/order.validator.js +0 -27
  97. package/.output/modules/inventory/brands/brand.exception.d.ts +0 -5
  98. package/.output/modules/inventory/brands/brand.exception.js +0 -40
  99. package/.output/modules/inventory/categories/category.exception.d.ts +0 -5
  100. package/.output/modules/inventory/categories/category.exception.js +0 -40
  101. package/.output/modules/inventory/categories/category.fixture.d.ts +0 -5
  102. package/.output/modules/inventory/categories/category.fixture.js +0 -38
  103. package/.output/modules/inventory/products/entities/code.entity.d.ts +0 -5
  104. package/.output/modules/inventory/products/entities/seo.entity.d.ts +0 -5
  105. package/.output/modules/inventory/products/entities/variant.entity.d.ts +0 -13
  106. package/.output/modules/inventory/products/product.exception.d.ts +0 -5
  107. package/.output/modules/inventory/products/product.exception.js +0 -40
  108. package/.output/modules/inventory/products/product.fixture.d.ts +0 -5
  109. package/.output/modules/inventory/products/product.fixture.js +0 -39
  110. package/.output/modules/inventory/products/schemas/variant.schema.js +0 -6
  111. package/.output/modules/inventory/products/validators/code.validator.d.ts +0 -5
  112. package/.output/modules/inventory/products/validators/code.validator.js +0 -37
  113. package/.output/modules/inventory/products/validators/seo.validator.d.ts +0 -5
  114. package/.output/modules/inventory/products/validators/variant.validator.d.ts +0 -10
  115. package/.output/modules/inventory/properties/property.entity.d.ts +0 -8
  116. package/.output/modules/inventory/properties/property.exception.d.ts +0 -5
  117. package/.output/modules/inventory/properties/property.exception.js +0 -40
  118. package/.output/modules/inventory/properties/property.types.d.ts +0 -6
  119. package/.output/modules/inventory/properties/property.types.js +0 -10
  120. package/.output/modules/inventory/properties/property.validator.d.ts +0 -12
  121. package/.output/modules/inventory/properties/property.validator.js +0 -79
  122. package/.output/modules/layout/pages/page.entity.d.ts +0 -8
  123. package/.output/modules/layout/pages/page.fixture.d.ts +0 -5
  124. package/.output/modules/layout/pages/page.fixture.js +0 -36
  125. package/.output/modules/layout/pages/page.types.d.ts +0 -20
  126. package/.output/modules/layout/pages/page.types.js +0 -2
  127. package/.output/modules/layout/pages/page.validator.d.ts +0 -8
  128. package/.output/modules/layout/pages/page.validator.js +0 -61
  129. package/.output/modules/sale/customers/customer.exception.d.ts +0 -5
  130. package/.output/modules/sale/customers/customer.exception.js +0 -40
  131. package/.output/modules/sale/orders/billing/billing.entity.d.ts +0 -10
  132. package/.output/modules/sale/orders/billing/billing.types.d.ts +0 -9
  133. package/.output/modules/sale/orders/billing/billing.types.js +0 -14
  134. package/.output/modules/sale/orders/billing/billing.validator.d.ts +0 -9
  135. package/.output/modules/sale/orders/billing/billing.validator.js +0 -42
  136. package/.output/modules/sale/orders/billing/entities/address.entity.d.ts +0 -10
  137. package/.output/modules/sale/orders/billing/entities/customer.entity.d.ts +0 -5
  138. package/.output/modules/sale/orders/billing/entities/status.entity.d.ts +0 -6
  139. package/.output/modules/sale/orders/billing/validators/address.validator.d.ts +0 -10
  140. package/.output/modules/sale/orders/billing/validators/address.validator.js +0 -56
  141. package/.output/modules/sale/orders/billing/validators/customer.validator.d.ts +0 -5
  142. package/.output/modules/sale/orders/customer/customer.entity.d.ts +0 -5
  143. package/.output/modules/sale/orders/customer/customer.validator.d.ts +0 -5
  144. package/.output/modules/sale/orders/customer/customer.validator.js +0 -36
  145. package/.output/modules/sale/orders/item/item.entity.d.ts +0 -9
  146. package/.output/modules/sale/orders/item/item.schema.js +0 -9
  147. package/.output/modules/sale/orders/order.exception.d.ts +0 -13
  148. package/.output/modules/sale/orders/order.exception.js +0 -46
  149. package/.output/modules/sale/orders/shipping/entities/address.entity.d.ts +0 -10
  150. package/.output/modules/sale/orders/shipping/entities/customer.entity.d.ts +0 -5
  151. package/.output/modules/sale/orders/shipping/entities/status.entity.d.ts +0 -6
  152. package/.output/modules/sale/orders/shipping/shipping.entity.d.ts +0 -11
  153. package/.output/modules/sale/orders/shipping/shipping.types.d.ts +0 -11
  154. package/.output/modules/sale/orders/shipping/shipping.types.js +0 -16
  155. package/.output/modules/sale/orders/shipping/shipping.validator.d.ts +0 -10
  156. package/.output/modules/sale/orders/shipping/shipping.validator.js +0 -48
  157. package/.output/modules/sale/orders/shipping/validators/address.validator.d.ts +0 -10
  158. package/.output/modules/sale/orders/shipping/validators/address.validator.js +0 -56
  159. package/.output/modules/sale/orders/shipping/validators/customer.validator.d.ts +0 -5
  160. package/.output/modules/sale/orders/status/status.entity.d.ts +0 -6
  161. package/.output/modules/sale/orders/status/status.validator.js +0 -12
  162. package/.output/services/logger.service.d.ts +0 -11
  163. package/.output/services/logger.service.js +0 -50
  164. package/.output/types.d.ts +0 -18
  165. package/.output/types.js +0 -2
  166. package/LICENSE +0 -674
@@ -1,6 +0,0 @@
1
- import { StatusType } from './status.validator';
2
- export declare class StatusEntity {
3
- name: StatusType;
4
- user: string;
5
- date: any;
6
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusType = void 0;
4
- var StatusType;
5
- (function (StatusType) {
6
- StatusType["CREATED"] = "CREATED";
7
- StatusType["ACCEPTED"] = "ACCEPTED";
8
- StatusType["IN_PREPARATION"] = "IN_PREPARATION";
9
- StatusType["SENDED"] = "SENDED";
10
- StatusType["COMPLETED"] = "COMPLETED";
11
- StatusType["CANCELED"] = "CANCELED";
12
- })(StatusType = exports.StatusType || (exports.StatusType = {}));
@@ -1,11 +0,0 @@
1
- import { LoggerService as NestLogger } from '@nestjs/common';
2
- import { Request } from 'express';
3
- export declare class LoggerService implements NestLogger {
4
- protected readonly $request: Request;
5
- protected get organization(): string | string[];
6
- log(message: string): void;
7
- error(reason: Error): void;
8
- warn(message: string, scope?: string): void;
9
- debug(message: string, scope?: string): void;
10
- verbose(message: string, scope?: string): void;
11
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LoggerService = void 0;
13
- var common_1 = require("@nestjs/common");
14
- var core_1 = require("@nestjs/core");
15
- var LoggerService = (function () {
16
- function LoggerService() {
17
- }
18
- Object.defineProperty(LoggerService.prototype, "organization", {
19
- get: function () {
20
- var identity = this.$request.headers.identity;
21
- return identity;
22
- },
23
- enumerable: false,
24
- configurable: true
25
- });
26
- LoggerService.prototype.log = function (message) {
27
- return common_1.Logger.log(message, this.organization);
28
- };
29
- LoggerService.prototype.error = function (reason) {
30
- return common_1.Logger.error("[" + reason.name + "]: " + reason.message, this.organization);
31
- };
32
- LoggerService.prototype.warn = function (message, scope) {
33
- return common_1.Logger.warn("[" + scope + "]: " + message, this.organization);
34
- };
35
- LoggerService.prototype.debug = function (message, scope) {
36
- return common_1.Logger.debug("[" + scope + "]: " + message, this.organization);
37
- };
38
- LoggerService.prototype.verbose = function (message, scope) {
39
- return common_1.Logger.verbose("[" + scope + "]: " + message, this.organization);
40
- };
41
- __decorate([
42
- (0, common_1.Inject)(core_1.REQUEST),
43
- __metadata("design:type", Object)
44
- ], LoggerService.prototype, "$request", void 0);
45
- LoggerService = __decorate([
46
- (0, common_1.Injectable)()
47
- ], LoggerService);
48
- return LoggerService;
49
- }());
50
- exports.LoggerService = LoggerService;
@@ -1,18 +0,0 @@
1
- import { AppMetadata, OrganizationConnection, User, UserMetadata } from 'auth0';
2
- export interface MetaAddress {
3
- city: string;
4
- code: string;
5
- complement?: string;
6
- country: string;
7
- number: string;
8
- state: string;
9
- street: string;
10
- }
11
- export interface LocalOrganization extends OrganizationConnection {
12
- connected: boolean;
13
- }
14
- export interface UserMeta extends UserMetadata {
15
- addresses?: MetaAddress[];
16
- }
17
- export declare type AppMeta = AppMetadata;
18
- export declare type UserDocument = User<AppMeta, UserMeta>;
package/.output/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });