@aurispec/core-backend 1.0.22 → 1.0.24

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
@@ -49,8 +49,10 @@ npm install
49
49
  npm run migration:run
50
50
  npm run dev
51
51
 
52
+
53
+ npm login
52
54
  npm version patch
53
- npm publish
55
+ npm publish --access public --auth-type legacy
54
56
 
55
57
  ```
56
58
 
@@ -109,5 +109,6 @@ export * from "./plans";
109
109
  export * from "./postgres";
110
110
  export * from "./redis";
111
111
  export * from "./axios";
112
+ export * from "./sendgrid";
112
113
  export * from "./stripe";
113
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/configs/index.ts"],"names":[],"mappings":"AAMA,aAAK,eAAe;IAChB,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAO;IACX,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,cAAc,mBAAiB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,qBAAqB,0BAA0B;IAC/C,qBAAqB,0BAA0B;IAC/C,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,qBAAqB,0BAA0B;IAC/C,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;CAClD;AAED,wBAAgB,MAAM,CAA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AAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCwC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DjE,CAAA;AAED,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -168,4 +168,5 @@ __exportStar(require("./plans"), exports);
168
168
  __exportStar(require("./postgres"), exports);
169
169
  __exportStar(require("./redis"), exports);
170
170
  __exportStar(require("./axios"), exports);
171
+ __exportStar(require("./sendgrid"), exports);
171
172
  __exportStar(require("./stripe"), exports);
@@ -29,5 +29,4 @@ export * from "./number_utils";
29
29
  export * from "./responseHandlers";
30
30
  export * from "./security";
31
31
  export * from "./validator";
32
- export * from "./mailing";
33
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAE7C,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAG1C;AAED,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAU/D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;EAUvC;AAED,wBAAgB,YAAY;;;EAQ3B;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CASjF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,GAAE,OAAO,GAAG,MAAe,UA4BxE;AAED,wB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,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAKD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM;;;EAKnC;AAGD,wBAAgB,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAS3D;AAED,eAAO,MAAM,eAAe,GAC1B,cAAc,SAAS,EACvB,SAAS,MAAM,EACf,UAAU,MAAM,YAuBjB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,IAAI;;;;EAgBtD;AAED,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -172,4 +172,3 @@ __exportStar(require("./number_utils"), exports);
172
172
  __exportStar(require("./responseHandlers"), exports);
173
173
  __exportStar(require("./security"), exports);
174
174
  __exportStar(require("./validator"), exports);
175
- __exportStar(require("./mailing"), exports);
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class ModifedServicesTableColumns1774477703737 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1774477703737-modifed_services_table_columns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1774477703737-modifed_services_table_columns.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1774477703737-modifed_services_table_columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D,qBAAa,wCAAyC,YAAW,kBAAkB;IAC/E,IAAI,SAA6C;IAEpC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7D"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModifedServicesTableColumns1774477703737 = void 0;
4
+ class ModifedServicesTableColumns1774477703737 {
5
+ name = 'ModifedServicesTableColumns1774477703737';
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "services" DROP COLUMN "status"`);
8
+ await queryRunner.query(`DROP TYPE "public"."services_status_enum"`);
9
+ await queryRunner.query(`CREATE TYPE "public"."service_providers_status_enum" AS ENUM('DRAFT', 'PUBLISHED')`);
10
+ await queryRunner.query(`ALTER TABLE "service_providers" ADD "status" "public"."service_providers_status_enum" NOT NULL DEFAULT 'DRAFT'`);
11
+ }
12
+ async down(queryRunner) {
13
+ await queryRunner.query(`ALTER TABLE "service_providers" DROP COLUMN "status"`);
14
+ await queryRunner.query(`DROP TYPE "public"."service_providers_status_enum"`);
15
+ await queryRunner.query(`CREATE TYPE "public"."services_status_enum" AS ENUM('DRAFT', 'PUBLISHED')`);
16
+ await queryRunner.query(`ALTER TABLE "services" ADD "status" "public"."services_status_enum" NOT NULL DEFAULT 'DRAFT'`);
17
+ }
18
+ }
19
+ exports.ModifedServicesTableColumns1774477703737 = ModifedServicesTableColumns1774477703737;
@@ -1,13 +1,11 @@
1
1
  import { BaseModel } from "./BaseModel";
2
2
  import { UserModel } from "./UserModel";
3
3
  import { ServiceProviderModel } from "./ServiceProviderModel";
4
- import { ServiceStatus } from "../common/enums";
5
4
  export declare class BusinessServiceModel extends BaseModel {
6
5
  name: string;
7
6
  user_id: number;
8
7
  provider_info_id: number;
9
8
  amount: string;
10
- status: ServiceStatus;
11
9
  user: UserModel;
12
10
  provider_info: ServiceProviderModel;
13
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BusinessServiceModel.d.ts","sourceRoot":"","sources":["../../src/models/BusinessServiceModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBACa,oBAAqB,SAAQ,SAAS;IAEjD,IAAI,EAAG,MAAM,CAAC;IAGd,OAAO,EAAG,MAAM,CAAC;IAGjB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,MAAM,EAAG,MAAM,CAAC;IAOhB,MAAM,EAAG,aAAa,CAAC;IAIvB,IAAI,EAAG,SAAS,CAAC;IAIjB,aAAa,EAAG,oBAAoB,CAAC;CACtC"}
1
+ {"version":3,"file":"BusinessServiceModel.d.ts","sourceRoot":"","sources":["../../src/models/BusinessServiceModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAG5D,qBACa,oBAAqB,SAAQ,SAAS;IAEjD,IAAI,EAAG,MAAM,CAAC;IAGd,OAAO,EAAG,MAAM,CAAC;IAGjB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,MAAM,EAAG,MAAM,CAAC;IAIhB,IAAI,EAAG,SAAS,CAAC;IAIjB,aAAa,EAAG,oBAAoB,CAAC;CACtC"}
@@ -14,13 +14,11 @@ const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  const UserModel_1 = require("./UserModel");
16
16
  const ServiceProviderModel_1 = require("./ServiceProviderModel");
17
- const enums_1 = require("../common/enums");
18
17
  let BusinessServiceModel = class BusinessServiceModel extends BaseModel_1.BaseModel {
19
18
  name;
20
19
  user_id;
21
20
  provider_info_id;
22
21
  amount;
23
- status;
24
22
  user;
25
23
  provider_info;
26
24
  };
@@ -41,14 +39,6 @@ __decorate([
41
39
  (0, typeorm_1.Column)({ type: "decimal" }),
42
40
  __metadata("design:type", String)
43
41
  ], BusinessServiceModel.prototype, "amount", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({
46
- type: "enum",
47
- enum: enums_1.ServiceStatus,
48
- default: enums_1.ServiceStatus.DRAFT
49
- }),
50
- __metadata("design:type", String)
51
- ], BusinessServiceModel.prototype, "status", void 0);
52
42
  __decorate([
53
43
  (0, typeorm_1.ManyToOne)(() => UserModel_1.UserModel),
54
44
  (0, typeorm_1.JoinColumn)({ name: "user_id", referencedColumnName: "id" }),
@@ -4,6 +4,7 @@ import { UploadModel } from "./UploadModel";
4
4
  import { BusinessModel } from "./BusinessModel";
5
5
  import { BusinessServiceModel } from "./BusinessServiceModel";
6
6
  import { CategoryModel } from "./CategoryModel";
7
+ import { ServiceStatus } from "../common/enums";
7
8
  export declare class ServiceProviderModel extends BaseModel {
8
9
  name: string;
9
10
  user_id: number;
@@ -12,6 +13,7 @@ export declare class ServiceProviderModel extends BaseModel {
12
13
  years_of_experience: number;
13
14
  profile_image_id?: number;
14
15
  description: string;
16
+ status: ServiceStatus;
15
17
  location: any;
16
18
  coordinates: string;
17
19
  user: UserModel;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceProviderModel.d.ts","sourceRoot":"","sources":["../../src/models/ServiceProviderModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,qBACa,oBAAqB,SAAQ,SAAS;IAEjD,IAAI,EAAG,MAAM,CAAC;IAGd,OAAO,EAAG,MAAM,CAAC;IAGjB,WAAW,EAAG,MAAM,CAAC;IAGrB,WAAW,EAAG,MAAM,CAAC;IAGrB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E,WAAW,CAAC;IAI5B,QAAQ,EAAG,aAAa,CAAC;IAQzB,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC"}
@@ -17,6 +17,7 @@ const UploadModel_1 = require("./UploadModel");
17
17
  const BusinessModel_1 = require("./BusinessModel");
18
18
  const BusinessServiceModel_1 = require("./BusinessServiceModel");
19
19
  const CategoryModel_1 = require("./CategoryModel");
20
+ const enums_1 = require("../common/enums");
20
21
  let ServiceProviderModel = class ServiceProviderModel extends BaseModel_1.BaseModel {
21
22
  name;
22
23
  user_id;
@@ -25,6 +26,7 @@ let ServiceProviderModel = class ServiceProviderModel extends BaseModel_1.BaseMo
25
26
  years_of_experience;
26
27
  profile_image_id;
27
28
  description;
29
+ status;
28
30
  location;
29
31
  coordinates;
30
32
  user;
@@ -62,6 +64,14 @@ __decorate([
62
64
  (0, typeorm_1.Column)({ type: "text" }),
63
65
  __metadata("design:type", String)
64
66
  ], ServiceProviderModel.prototype, "description", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({
69
+ type: "enum",
70
+ enum: enums_1.ServiceStatus,
71
+ default: enums_1.ServiceStatus.DRAFT
72
+ }),
73
+ __metadata("design:type", String)
74
+ ], ServiceProviderModel.prototype, "status", void 0);
65
75
  __decorate([
66
76
  (0, typeorm_1.Column)({ type: "jsonb" }),
67
77
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurispec/core-backend",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Auri spectrum's backend core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",