@matochmat/api-client 2.0.0-next.0 → 2.0.0-next.10
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/dist/index.cjs.js +25 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +16 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/v2/bonusStampCode.d.ts +38 -0
- package/dist/v2/city.d.ts +12 -8
- package/dist/v2/coupon.d.ts +50 -0
- package/dist/v2/emailTemplate.d.ts +50 -0
- package/dist/v2/geodata.d.ts +0 -9
- package/dist/v2/showcase.d.ts +1 -1
- package/dist/v2/showcaseLocation.d.ts +1 -1
- package/dist/v3/bonusStampCode.d.ts +11 -0
- package/dist/v3/city.d.ts +11 -0
- package/dist/v3/cityUploadConnection.d.ts +11 -0
- package/dist/v3/coupon.d.ts +17 -0
- package/dist/v3/couponLocation.d.ts +30 -0
- package/dist/v3/emailTemplate.d.ts +11 -0
- package/dist/v3/geodata.d.ts +11 -0
- package/dist/v3/showcaseLocation.d.ts +22 -3
- package/dist/v3/showcaseUploadConnection.d.ts +11 -0
- package/dist/v3/showcaseUserRoleConnection.d.ts +26 -3
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2BonusStampCodeType } from '../v2/bonusStampCode';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2BonusStampCodeApiEndpointSlug as apiV3BonusStampCodeApiEndpointSlug } from '../v2/bonusStampCode';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the bonus stamp code endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3BonusStampCodeType = ApiV2BonusStampCodeType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for bonus stamp code items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3BonusStampCodeResponseType = ApiV3BaseResponseType<ApiV3BonusStampCodeType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2CityType } from '../v2/city';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2CityApiEndpointSlug as apiV3CityApiEndpointSlug } from '../v2/city';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the city endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CityType = ApiV2CityType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for city items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3CityResponseType = ApiV3BaseResponseType<ApiV3CityType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2CityUploadConnectionType } from '../v2/cityUploadConnection';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2CityUploadConnectionApiEndpointSlug as apiV3CityUploadConnectionApiEndpointSlug } from '../v2/cityUploadConnection';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the city upload connection endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CityUploadConnectionType = ApiV2CityUploadConnectionType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for city upload connection items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3UCityUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3CityUploadConnectionType[], number>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ApiV2CouponType } from '../v2/coupon';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
import type { ApiV3CouponLocationType } from '../v3/couponLocation';
|
|
4
|
+
export { apiV2CouponApiEndpointSlug as apiV3CouponApiEndpointSlug } from '../v2/coupon';
|
|
5
|
+
/**
|
|
6
|
+
* Type for the individual array items in v3 of the API for the coupon endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export type ApiV3CouponType = ApiV2CouponType & {
|
|
9
|
+
/**
|
|
10
|
+
* List of locations where the coupon should be displayed.
|
|
11
|
+
*/
|
|
12
|
+
couponLocationList: ApiV3CouponLocationType[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The API response type for coupon items.
|
|
16
|
+
*/
|
|
17
|
+
export type ApiV3CouponResponseType = ApiV3BaseResponseType<ApiV3CouponType[], number>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v3 of the API for the coupon location endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV3CouponLocationType = {
|
|
6
|
+
/**
|
|
7
|
+
* City ID for the location.
|
|
8
|
+
*/
|
|
9
|
+
cityId: number;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the coupon the location represents.
|
|
12
|
+
*/
|
|
13
|
+
couponId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the coupon location.
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp for when the entity was last updated.
|
|
20
|
+
*/
|
|
21
|
+
lastUpdated: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The API response type for coupon location items.
|
|
25
|
+
*/
|
|
26
|
+
export type ApiV3CouponLocationResponseType = ApiV3BaseResponseType<ApiV3CouponLocationType[], number>;
|
|
27
|
+
/**
|
|
28
|
+
* API endpoint slug.
|
|
29
|
+
*/
|
|
30
|
+
export declare const apiV3CouponLocationApiEndpointSlug = "coupon-locations";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2EmailTemplateType } from '../v2/emailTemplate';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2EmailTemplateApiEndpointSlug as apiV3EmailTemplateApiEndpointSlug } from '../v2/emailTemplate';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the email template endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3EmailTemplateType = ApiV2EmailTemplateType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for email template items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3EmailTemplateResponseType = ApiV3BaseResponseType<ApiV3EmailTemplateType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2GeodataType } from '../v2/geodata';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2GeodataApiEndpointSlug as apiV3GeodataApiEndpointSlug } from '../v2/geodata';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the geodata endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3GeodataType = ApiV2GeodataType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for geodata items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3GeodataResponseType = ApiV3BaseResponseType<ApiV3GeodataType[], number>;
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import type { ApiV2ShowcaseLocationType } from '../v2/showcaseLocation';
|
|
2
1
|
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2ShowcaseLocationApiEndpointSlug as apiV3ShowcaseLocationApiEndpointSlug } from '../v2/showcaseLocation';
|
|
4
2
|
/**
|
|
5
3
|
* Type for the individual array items in v3 of the API for the showcase location endpoint.
|
|
6
4
|
*/
|
|
7
|
-
export type ApiV3ShowcaseLocationType =
|
|
5
|
+
export type ApiV3ShowcaseLocationType = {
|
|
6
|
+
/**
|
|
7
|
+
* City ID for the location.
|
|
8
|
+
*/
|
|
9
|
+
cityId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Unique ID for the showcase location.
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* Timestamp for when the entity was last updated.
|
|
16
|
+
*/
|
|
17
|
+
lastUpdated: string;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the showcase the location represents.
|
|
20
|
+
*/
|
|
21
|
+
showcaseId: number;
|
|
22
|
+
};
|
|
8
23
|
/**
|
|
9
24
|
* The API response type for showcase location items.
|
|
10
25
|
*/
|
|
11
26
|
export type ApiV3ShowcaseLocationResponseType = ApiV3BaseResponseType<ApiV3ShowcaseLocationType[], number>;
|
|
27
|
+
/**
|
|
28
|
+
* API endpoint slug.
|
|
29
|
+
*/
|
|
30
|
+
export declare const apiV3ShowcaseLocationApiEndpointSlug = "showcase-locations";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2ShowcaseUploadConnectionType } from '../v2/showcaseUploadConnection';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2ShowcaseUploadConnectionApiEndpointSlug as apiV3ShowcaseUploadConnectionApiEndpointSlug } from '../v2/showcaseUploadConnection';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the showcase upload connection endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3ShowcaseUploadConnectionType = ApiV2ShowcaseUploadConnectionType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for showcase upload connection items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3UShowcaseUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3ShowcaseUploadConnectionType[], number>;
|
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
import type { ApiV2ShowcaseUserRoleConnectionType } from '../v2/showcaseUserRoleConnection';
|
|
2
1
|
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2ShowcaseUserRoleConnectionApiEndpointSlug as apiV3ShowcaseUserRoleConnectionApiEndpointSlug } from '../v2/showcaseUserRoleConnection';
|
|
4
2
|
/**
|
|
5
3
|
* Type for the individual array items in v3 of the API for the showcase user role connection endpoint.
|
|
6
4
|
*/
|
|
7
|
-
export type ApiV3ShowcaseUserRoleConnectionType =
|
|
5
|
+
export type ApiV3ShowcaseUserRoleConnectionType = {
|
|
6
|
+
/**
|
|
7
|
+
* String representation of when the entity relation was created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* Unique ID for the showcase user role connection.
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* String representation of when the entity relation was last updated.
|
|
16
|
+
*/
|
|
17
|
+
lastUpdated: string;
|
|
18
|
+
/**
|
|
19
|
+
* Showcase ID (first entity).
|
|
20
|
+
*/
|
|
21
|
+
showcaseId: number;
|
|
22
|
+
/**
|
|
23
|
+
* User role ID (second entity).
|
|
24
|
+
*/
|
|
25
|
+
userRoleId: number;
|
|
26
|
+
};
|
|
8
27
|
/**
|
|
9
28
|
* The API response type for showcase user role connection items.
|
|
10
29
|
*/
|
|
11
30
|
export type ApiV3ShowcaseUserRoleConnectionResponseType = ApiV3BaseResponseType<ApiV3ShowcaseUserRoleConnectionType[], number>;
|
|
31
|
+
/**
|
|
32
|
+
* API endpoint slug.
|
|
33
|
+
*/
|
|
34
|
+
export declare const apiV3ShowcaseUserRoleConnectionApiEndpointSlug = "showcase-user-role-connections";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matochmat/api-client",
|
|
3
3
|
"description": "API types and helper functionality for the Mat och Mat API.",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.10",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|