@matochmat/api-client 1.3.4 → 1.3.6

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 CHANGED
@@ -1,9 +1,21 @@
1
1
  'use strict';
2
2
 
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ const apiV2CateringDishApiEndpointSlug = 'catering-dishes';
7
+
3
8
  /**
4
9
  * API endpoint slug.
5
10
  */
6
11
  const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';
7
12
 
13
+ /**
14
+ * API endpoint slug.
15
+ */
16
+ const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';
17
+
18
+ exports.apiV2CateringDishApiEndpointSlug = apiV2CateringDishApiEndpointSlug;
8
19
  exports.apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug;
20
+ exports.apiV2DinnerDishApiEndpointSlug = apiV2DinnerDishApiEndpointSlug;
9
21
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/v2/crawlingConfigurationTextContentStrategyType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n"],"names":[],"mappings":";;AAEA;;AAEG;AACI,MAAM,gEAAgE,GAAG;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/v2/cateringDish.ts","../src/v2/crawlingConfigurationTextContentStrategyType.ts","../src/v2/dinnerDish.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2FoodItemType } from '@matochmat/api-client/src/v2/foodItem';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishApiEndpointSlug = 'catering-dishes';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish endpoint.\n */\nexport type ApiV2CateringDishType = ApiV2FoodItemType &\n{\n\t/**\n\t * ID of the category that the catering dish belongs to.\n\t */\n\tcateringDishCategoryId: number;\n};\n\n/**\n * The API response type for catering dish.\n */\nexport type ApiV2CateringResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2|3;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2FoodItemType } from '@matochmat/api-client/src/v2/foodItem';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish endpoint.\n */\nexport type ApiV2DinnerDishType = ApiV2FoodItemType &\n{\n\t/**\n\t * ID of the category that the dinner dish belongs to.\n\t */\n\tdinnerDishCategoryId: number;\n};\n\n/**\n * The API response type for dinner dish.\n */\nexport type ApiV2DinnerResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;\n"],"names":[],"mappings":";;AAGA;;AAEG;AACI,MAAM,gCAAgC,GAAG;;ACJhD;;AAEG;AACI,MAAM,gEAAgE,GAAG;;ACFhF;;AAEG;AACI,MAAM,8BAA8B,GAAG;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './v2/baseResponse';
2
+ export * from './v2/cateringDish';
2
3
  export * from './v2/cateringFunctionality';
3
4
  export * from './v2/city';
4
5
  export * from './v2/cityUploadConnection';
@@ -8,6 +9,7 @@ export * from './v2/crawlingConfigurationTextContentStrategyType';
8
9
  export * from './v2/date';
9
10
  export * from './v2/day';
10
11
  export * from './v2/deliveryInfo';
12
+ export * from './v2/dinnerDish';
11
13
  export * from './v2/dinnerFunctionality';
12
14
  export * from './v2/foodItem';
13
15
  export * from './v2/geodata';
package/dist/index.esm.js CHANGED
@@ -1,7 +1,17 @@
1
+ /**
2
+ * API endpoint slug.
3
+ */
4
+ const apiV2CateringDishApiEndpointSlug = 'catering-dishes';
5
+
1
6
  /**
2
7
  * API endpoint slug.
3
8
  */
4
9
  const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';
5
10
 
6
- export { apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug };
11
+ /**
12
+ * API endpoint slug.
13
+ */
14
+ const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';
15
+
16
+ export { apiV2CateringDishApiEndpointSlug, apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug, apiV2DinnerDishApiEndpointSlug };
7
17
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/v2/crawlingConfigurationTextContentStrategyType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n"],"names":[],"mappings":"AAEA;;AAEG;AACI,MAAM,gEAAgE,GAAG;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/v2/cateringDish.ts","../src/v2/crawlingConfigurationTextContentStrategyType.ts","../src/v2/dinnerDish.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2FoodItemType } from '@matochmat/api-client/src/v2/foodItem';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishApiEndpointSlug = 'catering-dishes';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish endpoint.\n */\nexport type ApiV2CateringDishType = ApiV2FoodItemType &\n{\n\t/**\n\t * ID of the category that the catering dish belongs to.\n\t */\n\tcateringDishCategoryId: number;\n};\n\n/**\n * The API response type for catering dish.\n */\nexport type ApiV2CateringResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2|3;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2FoodItemType } from '@matochmat/api-client/src/v2/foodItem';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish endpoint.\n */\nexport type ApiV2DinnerDishType = ApiV2FoodItemType &\n{\n\t/**\n\t * ID of the category that the dinner dish belongs to.\n\t */\n\tdinnerDishCategoryId: number;\n};\n\n/**\n * The API response type for dinner dish.\n */\nexport type ApiV2DinnerResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;\n"],"names":[],"mappings":"AAGA;;AAEG;AACI,MAAM,gCAAgC,GAAG;;ACJhD;;AAEG;AACI,MAAM,gEAAgE,GAAG;;ACFhF;;AAEG;AACI,MAAM,8BAA8B,GAAG;;;;"}
@@ -0,0 +1,19 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2FoodItemType } from '../v2/foodItem';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2CateringDishApiEndpointSlug = "catering-dishes";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the catering dish endpoint.
9
+ */
10
+ export type ApiV2CateringDishType = ApiV2FoodItemType & {
11
+ /**
12
+ * ID of the category that the catering dish belongs to.
13
+ */
14
+ cateringDishCategoryId: number;
15
+ };
16
+ /**
17
+ * The API response type for catering dish.
18
+ */
19
+ export type ApiV2CateringResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;
@@ -14,7 +14,7 @@ export type ApiV2CrawlingConfigurationTextContentStrategyTypeType = {
14
14
  /**
15
15
  * Unique ID for the entity.
16
16
  */
17
- id: 1 | 2;
17
+ id: 1 | 2 | 3;
18
18
  /**
19
19
  * Timestamp for when the entity was last updated.
20
20
  */
@@ -0,0 +1,19 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2FoodItemType } from '../v2/foodItem';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2DinnerDishApiEndpointSlug = "dinner-dishes";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the dinner dish endpoint.
9
+ */
10
+ export type ApiV2DinnerDishType = ApiV2FoodItemType & {
11
+ /**
12
+ * ID of the category that the dinner dish belongs to.
13
+ */
14
+ dinnerDishCategoryId: number;
15
+ };
16
+ /**
17
+ * The API response type for dinner dish.
18
+ */
19
+ export type ApiV2DinnerResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;
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": "1.3.4",
4
+ "version": "1.3.6",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",