@qite/tide-client 1.0.49 → 1.0.52
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/build/index.d.ts +1 -0
- package/build/index.js +42 -25
- package/build/index.js.map +1 -1
- package/build/types/offer/affiliate.d.ts +5 -0
- package/build/types/offer/affiliates.d.ts +4 -4
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +1 -0
- package/build/utils/web-client.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/offer/affiliate.ts +5 -0
- package/src/types/offer/booking-v2/shared/booking-package-hotel.ts +1 -0
- package/src/utils/web-client.ts +3 -3
- package/src/types/offer/affiliates.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export interface Affiliate {
|
|
2
|
+
id: number;
|
|
3
|
+
slug: string;
|
|
4
|
+
companyId: number;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CrmContactRequest, TideClientConfig } from "../types";
|
|
2
|
-
import {
|
|
2
|
+
import { Affiliate } from "../types/offer/affiliate";
|
|
3
3
|
/**
|
|
4
4
|
* api/web/crmcontact
|
|
5
5
|
* Creates a CRM contact.
|
|
@@ -23,4 +23,4 @@ export declare const createCrmContact: (
|
|
|
23
23
|
export declare const getAffiliates: (
|
|
24
24
|
config: TideClientConfig,
|
|
25
25
|
signal?: AbortSignal | undefined
|
|
26
|
-
) => Promise<[
|
|
26
|
+
) => Promise<[Affiliate]>;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/utils/web-client.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CrmContactRequest, TideClientConfig } from "../types";
|
|
2
|
-
import {
|
|
2
|
+
import { Affiliate } from "../types/offer/affiliate";
|
|
3
3
|
|
|
4
4
|
import { post } from "./api";
|
|
5
5
|
import { get } from "./common-client";
|
|
@@ -38,9 +38,9 @@ export const createCrmContact = (
|
|
|
38
38
|
export const getAffiliates = (
|
|
39
39
|
config: TideClientConfig,
|
|
40
40
|
signal?: AbortSignal
|
|
41
|
-
): Promise<[
|
|
41
|
+
): Promise<[Affiliate]> => {
|
|
42
42
|
const url = `${config.host}${ENDPOINT_CREATE_AFFILIATES}`;
|
|
43
43
|
const apiKey = config.apiKey;
|
|
44
44
|
|
|
45
|
-
return get(url, apiKey, signal);
|
|
45
|
+
return get(url, apiKey, signal, true);
|
|
46
46
|
};
|