@qite/tide-client 1.0.48 → 1.0.51

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.
@@ -0,0 +1,5 @@
1
+ export interface Affiliate {
2
+ id: number;
3
+ slug: string;
4
+ companyId: number;
5
+ }
@@ -1,5 +1,5 @@
1
- export interface Affiliates {
2
- Id: number;
3
- Slug: string;
4
- CompanyId: number;
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 { Affiliates } from "../types/offer/affiliates";
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<[Affiliates]>;
26
+ ) => Promise<[Affiliate]>;
@@ -7,7 +7,7 @@ import { TideClientConfig } from "../types";
7
7
  * @param signal
8
8
  * @returns OK if succeeded.
9
9
  */
10
- export declare const contactForm: (
10
+ export declare const feedXml: (
11
11
  config: TideClientConfig,
12
12
  request: string,
13
13
  signal?: AbortSignal | undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.0.48",
3
+ "version": "1.0.51",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -63,3 +63,4 @@ export * from "./utils/booking-v2-client";
63
63
  export * from "./utils/mollie-client";
64
64
  export * from "./utils/web-client";
65
65
  export * from "./utils/web-contact-client";
66
+ export * from "./utils/web-file";
@@ -0,0 +1,5 @@
1
+ export interface Affiliate {
2
+ id: number;
3
+ slug: string;
4
+ companyId: number;
5
+ }
@@ -1,6 +1,7 @@
1
1
  import { BookingPackageHotelRoom } from "./booking-package-hotel-room";
2
2
 
3
3
  export interface BookingPackageHotel {
4
+ id?: number;
4
5
  name: string;
5
6
  productCode: string;
6
7
  isSelected: boolean;
@@ -1,5 +1,5 @@
1
1
  import { CrmContactRequest, TideClientConfig } from "../types";
2
- import { Affiliates } from "../types/offer/affiliates";
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<[Affiliates]> => {
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
  };
@@ -12,7 +12,7 @@ const ENDPOINT_FEED = `${ENDPOINT}/feed`;
12
12
  * @param signal
13
13
  * @returns OK if succeeded.
14
14
  */
15
- export const contactForm = (
15
+ export const feedXml = (
16
16
  config: TideClientConfig,
17
17
  request: string,
18
18
  signal?: AbortSignal
@@ -1,5 +0,0 @@
1
- export interface Affiliates {
2
- Id: number;
3
- Slug: string;
4
- CompanyId: number;
5
- }