@escapenavigator/services 1.4.36 → 1.4.38

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.
@@ -4,13 +4,11 @@ import { getOneByCode } from './get-one-by-code';
4
4
  import { query } from './query';
5
5
  import { resend } from './resend';
6
6
  import { ship } from './ship';
7
- import { updateDeliveryInfo } from './update-delivery-info';
8
7
  import { updateExpireDate } from './update-expire-date';
9
8
  import { updateTrackingInfo } from './update-tracking-info';
10
9
  export type { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
11
10
  declare type ApiDeclaration = {
12
11
  create: typeof create;
13
- updateDeliveryInfo: typeof updateDeliveryInfo;
14
12
  query: typeof query;
15
13
  getOne: typeof getOne;
16
14
  ship: typeof ship;
@@ -7,12 +7,10 @@ var get_one_by_code_1 = require("./get-one-by-code");
7
7
  var query_1 = require("./query");
8
8
  var resend_1 = require("./resend");
9
9
  var ship_1 = require("./ship");
10
- var update_delivery_info_1 = require("./update-delivery-info");
11
10
  var update_expire_date_1 = require("./update-expire-date");
12
11
  var update_tracking_info_1 = require("./update-tracking-info");
13
12
  exports.certificateSalesApiDeclaration = {
14
13
  create: create_1.create,
15
- updateDeliveryInfo: update_delivery_info_1.updateDeliveryInfo,
16
14
  query: query_1.query,
17
15
  getOne: get_one_1.getOne,
18
16
  ship: ship_1.ship,
@@ -0,0 +1,16 @@
1
+ // import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
2
+ // import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
3
+ // import { ApiMethodDeclaration } from '../..';
4
+ // type ParamsData = {
5
+ // id: number;
6
+ // data: UpdateCertificatesaleDeliveryInfoDto;
7
+ // };
8
+ // type ResponseData = CertificateSaleRO;
9
+ // export const updateDeliveryInfo: ApiMethodDeclaration<ParamsData, ResponseData> = ({
10
+ // id,
11
+ // data,
12
+ // }) => ({
13
+ // url: `/certificatesales/delivery-info/${id}`,
14
+ // method: 'PATCH',
15
+ // data,
16
+ // });
@@ -1,8 +1,7 @@
1
+ import { CertificatesaleResendDto } from '@escapenavigator/types/dist/certificate-sale/certificate-sale-resend.dto';
1
2
  import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = {
4
- id: number;
5
- };
4
+ declare type ParamsData = CertificatesaleResendDto;
6
5
  declare type ResponseData = CertificateSaleRO;
7
6
  export declare const resend: ApiMethodDeclaration<ParamsData, ResponseData>;
8
7
  export {};
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resend = void 0;
4
- var resend = function (_a) {
5
- var id = _a.id;
6
- return ({
7
- url: "/certificatesales/resend/".concat(id),
8
- method: 'GET',
9
- });
10
- };
4
+ var resend = function (params) { return ({
5
+ url: '/certificatesales/resend',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
11
9
  exports.resend = resend;
@@ -1,9 +1,9 @@
1
1
  import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
2
- import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
2
+ import { UpdateCertificatesaleTrackingInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-tracking-info.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  id: number;
6
- data: UpdateCertificatesaleDeliveryInfoDto;
6
+ data: UpdateCertificatesaleTrackingInfoDto;
7
7
  };
8
8
  declare type ResponseData = CertificateSaleRO;
9
9
  export declare const updateTrackingInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.36",
3
+ "version": "1.4.38",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,9 +12,9 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "a1a8084c926cdebc84c284930e3688bbb184a3a7",
15
+ "gitHead": "d75580da1dcea4876eda67d8a714d1596db9d2dc",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.36",
17
+ "@escapenavigator/types": "^1.4.38",
18
18
  "axios": "^0.21.4",
19
19
  "class-transformer": "^0.5.1",
20
20
  "class-validator": "^0.13.1",
@@ -1,10 +0,0 @@
1
- import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
2
- import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- id: number;
6
- data: UpdateCertificatesaleDeliveryInfoDto;
7
- };
8
- declare type ResponseData = CertificateSaleRO;
9
- export declare const updateDeliveryInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
10
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateDeliveryInfo = void 0;
4
- var updateDeliveryInfo = function (_a) {
5
- var id = _a.id, data = _a.data;
6
- return ({
7
- url: "/certificatesales/delivery-info/".concat(id),
8
- method: 'PATCH',
9
- data: data,
10
- });
11
- };
12
- exports.updateDeliveryInfo = updateDeliveryInfo;