@matochmat/api-client 1.3.6 → 1.4.0-next.1

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
@@ -5,6 +5,16 @@
5
5
  */
6
6
  const apiV2CateringDishApiEndpointSlug = 'catering-dishes';
7
7
 
8
+ /**
9
+ * API endpoint slug.
10
+ */
11
+ const apiV2CateringDishCategoryApiEndpointSlug = 'catering-dish-categories';
12
+
13
+ /**
14
+ * API endpoint slug.
15
+ */
16
+ const apiV2CateringDishTabApiEndpointSlug = 'catering-dish-tabs';
17
+
8
18
  /**
9
19
  * API endpoint slug.
10
20
  */
@@ -15,7 +25,27 @@ const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawli
15
25
  */
16
26
  const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';
17
27
 
28
+ /**
29
+ * API endpoint slug.
30
+ */
31
+ const apiV2DinnerDishCategoryApiEndpointSlug = 'dinner-dish-categories';
32
+
33
+ /**
34
+ * API endpoint slug.
35
+ */
36
+ const apiV2DinnerDishTabApiEndpointSlug = 'dinner-dish-tabs';
37
+
38
+ /**
39
+ * API endpoint slug.
40
+ */
41
+ const apiV2UpdatedByTypeApiEndpointSlug = 'updated-by-types';
42
+
18
43
  exports.apiV2CateringDishApiEndpointSlug = apiV2CateringDishApiEndpointSlug;
44
+ exports.apiV2CateringDishCategoryApiEndpointSlug = apiV2CateringDishCategoryApiEndpointSlug;
45
+ exports.apiV2CateringDishTabApiEndpointSlug = apiV2CateringDishTabApiEndpointSlug;
19
46
  exports.apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug;
20
47
  exports.apiV2DinnerDishApiEndpointSlug = apiV2DinnerDishApiEndpointSlug;
48
+ exports.apiV2DinnerDishCategoryApiEndpointSlug = apiV2DinnerDishCategoryApiEndpointSlug;
49
+ exports.apiV2DinnerDishTabApiEndpointSlug = apiV2DinnerDishTabApiEndpointSlug;
50
+ exports.apiV2UpdatedByTypeApiEndpointSlug = apiV2UpdatedByTypeApiEndpointSlug;
21
51
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
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;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/v2/cateringDish.ts","../src/v2/cateringDishCategory.ts","../src/v2/cateringDishTab.ts","../src/v2/crawlingConfigurationTextContentStrategyType.ts","../src/v2/dinnerDish.ts","../src/v2/dinnerDishCategory.ts","../src/v2/dinnerDishTab.ts","../src/v2/updatedByType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishType } from '@matochmat/api-client/src/v2/dish';\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 = ApiV2DishType &\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 dishes.\n */\nexport type ApiV2CateringDishResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishCategoryType } from '@matochmat/api-client/src/v2/dishCategory';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishCategoryApiEndpointSlug = 'catering-dish-categories';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish category endpoint.\n */\nexport type ApiV2CateringDishCategoryType = ApiV2DishCategoryType &\n{\n\t/**\n\t * ID of the category that the catering dish belongs to.\n\t */\n\tcateringDishTabId: number;\n};\n\n/**\n * The API response type for catering dish categories.\n */\nexport type ApiV2CateringDishCategoryResponseType = ApiV2BaseResponseType<ApiV2CateringDishCategoryType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishTabType } from '@matochmat/api-client/src/v2/dishTab';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishTabApiEndpointSlug = 'catering-dish-tabs';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish category endpoint.\n */\nexport type ApiV2CateringDishTabType = ApiV2DishTabType;\n\n/**\n * The API response type for catering dish categories.\n */\nexport type ApiV2CateringDishTabResponseType = ApiV2BaseResponseType<ApiV2CateringDishTabType[], 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 { ApiV2DishType } from '@matochmat/api-client/src/v2/dish';\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 = ApiV2DishType &\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 dishes.\n */\nexport type ApiV2DinnerDishResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishCategoryType } from '@matochmat/api-client/src/v2/dishCategory';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishCategoryApiEndpointSlug = 'dinner-dish-categories';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish category endpoint.\n */\nexport type ApiV2DinnerDishCategoryType = ApiV2DishCategoryType &\n{\n\t/**\n\t * ID of the category that the dinner dish belongs to.\n\t */\n\tdinnerDishTabId: number;\n};\n\n/**\n * The API response type for dinner dish categories.\n */\nexport type ApiV2DinnerDishCategoryResponseType = ApiV2BaseResponseType<ApiV2DinnerDishCategoryType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishTabType } from '@matochmat/api-client/src/v2/dishTab';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishTabApiEndpointSlug = 'dinner-dish-tabs';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish category endpoint.\n */\nexport type ApiV2DinnerDishTabType = ApiV2DishTabType;\n\n/**\n * The API response type for dinner dish categories.\n */\nexport type ApiV2DinnerDishTabResponseType = ApiV2BaseResponseType<ApiV2DinnerDishTabType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2UpdatedByTypeApiEndpointSlug = 'updated-by-types';\n\n/**\n *\n */\nexport type ApiV2UpdatedByTypeType =\n{\n\t/**\n\t * String representation of when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: number;\n\n\t/**\n\t * String representation of the last time the entity was 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 \"Updated by\" types.\n */\nexport type ApiV2UpdatedByTypeResponseType = ApiV2BaseResponseType<ApiV2UpdatedByTypeType[], number>;\n\n"],"names":[],"mappings":";;AAGA;;AAEG;AACI,MAAM,gCAAgC,GAAG;;ACHhD;;AAEG;AACI,MAAM,wCAAwC,GAAG;;ACHxD;;AAEG;AACI,MAAM,mCAAmC,GAAG;;ACJnD;;AAEG;AACI,MAAM,gEAAgE,GAAG;;ACFhF;;AAEG;AACI,MAAM,8BAA8B,GAAG;;ACH9C;;AAEG;AACI,MAAM,sCAAsC,GAAG;;ACHtD;;AAEG;AACI,MAAM,iCAAiC,GAAG;;ACJjD;;AAEG;AACI,MAAM,iCAAiC,GAAG;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from './v2/baseResponse';
2
2
  export * from './v2/cateringDish';
3
+ export * from './v2/cateringDishCategory';
4
+ export * from './v2/cateringDishTab';
3
5
  export * from './v2/cateringFunctionality';
4
6
  export * from './v2/city';
5
7
  export * from './v2/cityUploadConnection';
@@ -10,7 +12,12 @@ export * from './v2/date';
10
12
  export * from './v2/day';
11
13
  export * from './v2/deliveryInfo';
12
14
  export * from './v2/dinnerDish';
15
+ export * from './v2/dinnerDishCategory';
16
+ export * from './v2/dinnerDishTab';
13
17
  export * from './v2/dinnerFunctionality';
18
+ export * from './v2/dish';
19
+ export * from './v2/dishCategory';
20
+ export * from './v2/dishTab';
14
21
  export * from './v2/foodItem';
15
22
  export * from './v2/geodata';
16
23
  export * from './v2/integrationV1Configuration';
@@ -28,6 +35,7 @@ export * from './v2/restaurantUploadConnection';
28
35
  export * from './v2/restaurantUploadGrouping';
29
36
  export * from './v2/tableBooking';
30
37
  export * from './v2/takeAway';
38
+ export * from './v2/updatedByType';
31
39
  export * from './v2/upload';
32
40
  export * from './v2/uploadConnection';
33
41
  export * from './v2/uploadGrouping';
package/dist/index.esm.js CHANGED
@@ -3,6 +3,16 @@
3
3
  */
4
4
  const apiV2CateringDishApiEndpointSlug = 'catering-dishes';
5
5
 
6
+ /**
7
+ * API endpoint slug.
8
+ */
9
+ const apiV2CateringDishCategoryApiEndpointSlug = 'catering-dish-categories';
10
+
11
+ /**
12
+ * API endpoint slug.
13
+ */
14
+ const apiV2CateringDishTabApiEndpointSlug = 'catering-dish-tabs';
15
+
6
16
  /**
7
17
  * API endpoint slug.
8
18
  */
@@ -13,5 +23,20 @@ const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawli
13
23
  */
14
24
  const apiV2DinnerDishApiEndpointSlug = 'dinner-dishes';
15
25
 
16
- export { apiV2CateringDishApiEndpointSlug, apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug, apiV2DinnerDishApiEndpointSlug };
26
+ /**
27
+ * API endpoint slug.
28
+ */
29
+ const apiV2DinnerDishCategoryApiEndpointSlug = 'dinner-dish-categories';
30
+
31
+ /**
32
+ * API endpoint slug.
33
+ */
34
+ const apiV2DinnerDishTabApiEndpointSlug = 'dinner-dish-tabs';
35
+
36
+ /**
37
+ * API endpoint slug.
38
+ */
39
+ const apiV2UpdatedByTypeApiEndpointSlug = 'updated-by-types';
40
+
41
+ export { apiV2CateringDishApiEndpointSlug, apiV2CateringDishCategoryApiEndpointSlug, apiV2CateringDishTabApiEndpointSlug, apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug, apiV2DinnerDishApiEndpointSlug, apiV2DinnerDishCategoryApiEndpointSlug, apiV2DinnerDishTabApiEndpointSlug, apiV2UpdatedByTypeApiEndpointSlug };
17
42
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
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;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/v2/cateringDish.ts","../src/v2/cateringDishCategory.ts","../src/v2/cateringDishTab.ts","../src/v2/crawlingConfigurationTextContentStrategyType.ts","../src/v2/dinnerDish.ts","../src/v2/dinnerDishCategory.ts","../src/v2/dinnerDishTab.ts","../src/v2/updatedByType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishType } from '@matochmat/api-client/src/v2/dish';\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 = ApiV2DishType &\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 dishes.\n */\nexport type ApiV2CateringDishResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishCategoryType } from '@matochmat/api-client/src/v2/dishCategory';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishCategoryApiEndpointSlug = 'catering-dish-categories';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish category endpoint.\n */\nexport type ApiV2CateringDishCategoryType = ApiV2DishCategoryType &\n{\n\t/**\n\t * ID of the category that the catering dish belongs to.\n\t */\n\tcateringDishTabId: number;\n};\n\n/**\n * The API response type for catering dish categories.\n */\nexport type ApiV2CateringDishCategoryResponseType = ApiV2BaseResponseType<ApiV2CateringDishCategoryType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishTabType } from '@matochmat/api-client/src/v2/dishTab';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CateringDishTabApiEndpointSlug = 'catering-dish-tabs';\n\n/**\n * Type for the individual array items in v2 of the API for the catering dish category endpoint.\n */\nexport type ApiV2CateringDishTabType = ApiV2DishTabType;\n\n/**\n * The API response type for catering dish categories.\n */\nexport type ApiV2CateringDishTabResponseType = ApiV2BaseResponseType<ApiV2CateringDishTabType[], 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 { ApiV2DishType } from '@matochmat/api-client/src/v2/dish';\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 = ApiV2DishType &\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 dishes.\n */\nexport type ApiV2DinnerDishResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishCategoryType } from '@matochmat/api-client/src/v2/dishCategory';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishCategoryApiEndpointSlug = 'dinner-dish-categories';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish category endpoint.\n */\nexport type ApiV2DinnerDishCategoryType = ApiV2DishCategoryType &\n{\n\t/**\n\t * ID of the category that the dinner dish belongs to.\n\t */\n\tdinnerDishTabId: number;\n};\n\n/**\n * The API response type for dinner dish categories.\n */\nexport type ApiV2DinnerDishCategoryResponseType = ApiV2BaseResponseType<ApiV2DinnerDishCategoryType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\nimport type { ApiV2DishTabType } from '@matochmat/api-client/src/v2/dishTab';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2DinnerDishTabApiEndpointSlug = 'dinner-dish-tabs';\n\n/**\n * Type for the individual array items in v2 of the API for the dinner dish category endpoint.\n */\nexport type ApiV2DinnerDishTabType = ApiV2DishTabType;\n\n/**\n * The API response type for dinner dish categories.\n */\nexport type ApiV2DinnerDishTabResponseType = ApiV2BaseResponseType<ApiV2DinnerDishTabType[], number>;\n","import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2UpdatedByTypeApiEndpointSlug = 'updated-by-types';\n\n/**\n *\n */\nexport type ApiV2UpdatedByTypeType =\n{\n\t/**\n\t * String representation of when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: number;\n\n\t/**\n\t * String representation of the last time the entity was 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 \"Updated by\" types.\n */\nexport type ApiV2UpdatedByTypeResponseType = ApiV2BaseResponseType<ApiV2UpdatedByTypeType[], number>;\n\n"],"names":[],"mappings":"AAGA;;AAEG;AACI,MAAM,gCAAgC,GAAG;;ACHhD;;AAEG;AACI,MAAM,wCAAwC,GAAG;;ACHxD;;AAEG;AACI,MAAM,mCAAmC,GAAG;;ACJnD;;AAEG;AACI,MAAM,gEAAgE,GAAG;;ACFhF;;AAEG;AACI,MAAM,8BAA8B,GAAG;;ACH9C;;AAEG;AACI,MAAM,sCAAsC,GAAG;;ACHtD;;AAEG;AACI,MAAM,iCAAiC,GAAG;;ACJjD;;AAEG;AACI,MAAM,iCAAiC,GAAG;;;;"}
@@ -11,7 +11,7 @@ export type ApiV2BaseResponseType<DataType, CountType extends null | number> = {
11
11
  */
12
12
  count: CountType;
13
13
  /**
14
- * Array of items.
14
+ * Response data.
15
15
  */
16
16
  data: DataType;
17
17
  /**
@@ -1,5 +1,5 @@
1
1
  import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- import type { ApiV2FoodItemType } from '../v2/foodItem';
2
+ import type { ApiV2DishType } from '../v2/dish';
3
3
  /**
4
4
  * API endpoint slug.
5
5
  */
@@ -7,13 +7,13 @@ export declare const apiV2CateringDishApiEndpointSlug = "catering-dishes";
7
7
  /**
8
8
  * Type for the individual array items in v2 of the API for the catering dish endpoint.
9
9
  */
10
- export type ApiV2CateringDishType = ApiV2FoodItemType & {
10
+ export type ApiV2CateringDishType = ApiV2DishType & {
11
11
  /**
12
12
  * ID of the category that the catering dish belongs to.
13
13
  */
14
14
  cateringDishCategoryId: number;
15
15
  };
16
16
  /**
17
- * The API response type for catering dish.
17
+ * The API response type for catering dishes.
18
18
  */
19
- export type ApiV2CateringResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;
19
+ export type ApiV2CateringDishResponseType = ApiV2BaseResponseType<ApiV2CateringDishType[], number>;
@@ -0,0 +1,19 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2DishCategoryType } from '../v2/dishCategory';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2CateringDishCategoryApiEndpointSlug = "catering-dish-categories";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the catering dish category endpoint.
9
+ */
10
+ export type ApiV2CateringDishCategoryType = ApiV2DishCategoryType & {
11
+ /**
12
+ * ID of the category that the catering dish belongs to.
13
+ */
14
+ cateringDishTabId: number;
15
+ };
16
+ /**
17
+ * The API response type for catering dish categories.
18
+ */
19
+ export type ApiV2CateringDishCategoryResponseType = ApiV2BaseResponseType<ApiV2CateringDishCategoryType[], number>;
@@ -0,0 +1,14 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2DishTabType } from '../v2/dishTab';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2CateringDishTabApiEndpointSlug = "catering-dish-tabs";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the catering dish category endpoint.
9
+ */
10
+ export type ApiV2CateringDishTabType = ApiV2DishTabType;
11
+ /**
12
+ * The API response type for catering dish categories.
13
+ */
14
+ export type ApiV2CateringDishTabResponseType = ApiV2BaseResponseType<ApiV2CateringDishTabType[], number>;
@@ -1,5 +1,5 @@
1
1
  import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- import type { ApiV2FoodItemType } from '../v2/foodItem';
2
+ import type { ApiV2DishType } from '../v2/dish';
3
3
  /**
4
4
  * API endpoint slug.
5
5
  */
@@ -7,13 +7,13 @@ export declare const apiV2DinnerDishApiEndpointSlug = "dinner-dishes";
7
7
  /**
8
8
  * Type for the individual array items in v2 of the API for the dinner dish endpoint.
9
9
  */
10
- export type ApiV2DinnerDishType = ApiV2FoodItemType & {
10
+ export type ApiV2DinnerDishType = ApiV2DishType & {
11
11
  /**
12
12
  * ID of the category that the dinner dish belongs to.
13
13
  */
14
14
  dinnerDishCategoryId: number;
15
15
  };
16
16
  /**
17
- * The API response type for dinner dish.
17
+ * The API response type for dinner dishes.
18
18
  */
19
- export type ApiV2DinnerResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;
19
+ export type ApiV2DinnerDishResponseType = ApiV2BaseResponseType<ApiV2DinnerDishType[], number>;
@@ -0,0 +1,19 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2DishCategoryType } from '../v2/dishCategory';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2DinnerDishCategoryApiEndpointSlug = "dinner-dish-categories";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the dinner dish category endpoint.
9
+ */
10
+ export type ApiV2DinnerDishCategoryType = ApiV2DishCategoryType & {
11
+ /**
12
+ * ID of the category that the dinner dish belongs to.
13
+ */
14
+ dinnerDishTabId: number;
15
+ };
16
+ /**
17
+ * The API response type for dinner dish categories.
18
+ */
19
+ export type ApiV2DinnerDishCategoryResponseType = ApiV2BaseResponseType<ApiV2DinnerDishCategoryType[], number>;
@@ -0,0 +1,14 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2DishTabType } from '../v2/dishTab';
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ export declare const apiV2DinnerDishTabApiEndpointSlug = "dinner-dish-tabs";
7
+ /**
8
+ * Type for the individual array items in v2 of the API for the dinner dish category endpoint.
9
+ */
10
+ export type ApiV2DinnerDishTabType = ApiV2DishTabType;
11
+ /**
12
+ * The API response type for dinner dish categories.
13
+ */
14
+ export type ApiV2DinnerDishTabResponseType = ApiV2BaseResponseType<ApiV2DinnerDishTabType[], number>;
@@ -0,0 +1,34 @@
1
+ import type { ApiV2FoodItemType } from '../v2/foodItem';
2
+ /**
3
+ * Dishes are a base type for shared info and not an entity you can query in and of itself.
4
+ */
5
+ export type ApiV2DishType = ApiV2FoodItemType & {
6
+ /**
7
+ * Timestamp for when the entity was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Description of the dish.
12
+ */
13
+ description: string;
14
+ /**
15
+ * Unique ID for the entity.
16
+ */
17
+ id: number;
18
+ /**
19
+ * Timestamp for when the entity was last updated.
20
+ */
21
+ lastUpdated: string;
22
+ /**
23
+ * Name of the dish.
24
+ */
25
+ name: string;
26
+ /**
27
+ * Price of the dish.
28
+ */
29
+ price: number;
30
+ /**
31
+ * Sorting order for the entity.
32
+ */
33
+ sortOrder: number;
34
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Dish categories are a base type for shared info and not an entity you can query in and of itself.
3
+ */
4
+ export type ApiV2DishCategoryType = {
5
+ /**
6
+ * Timestamp for when the entity was created.
7
+ */
8
+ created: string;
9
+ /**
10
+ * Description of the dinner dish category.
11
+ */
12
+ description: string;
13
+ /**
14
+ * Unique ID for the entity.
15
+ */
16
+ id: number;
17
+ /**
18
+ * Timestamp for when the entity was last updated.
19
+ */
20
+ lastUpdated: string;
21
+ /**
22
+ * Name of the dinner dish category.
23
+ */
24
+ name: string;
25
+ /**
26
+ * Sorting order for the entity.
27
+ */
28
+ sortOrder: number;
29
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dish tabs are a base type for shared info and not an entity you can query in and of itself.
3
+ */
4
+ export type ApiV2DishTabType = {
5
+ /**
6
+ * Timestamp for when the entity was created.
7
+ */
8
+ created: string;
9
+ /**
10
+ * Description of the dinner dish category.
11
+ */
12
+ description: string;
13
+ /**
14
+ * Unique ID for the entity.
15
+ */
16
+ id: number;
17
+ /**
18
+ * Timestamp for when the entity was last updated.
19
+ */
20
+ lastUpdated: string;
21
+ /**
22
+ * Name of the dinner dish category.
23
+ */
24
+ name: string;
25
+ /**
26
+ * ID of the restaurant that the category belongs to.
27
+ */
28
+ restaurantId: number;
29
+ /**
30
+ * Sorting order for the entity.
31
+ */
32
+ sortOrder: number;
33
+ };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Food items are a base type for shared info and not an entity you can query in and of itself.
3
+ */
1
4
  export type ApiV2FoodItemType = {
2
5
  /**
3
6
  * Description of the dish. Usually displayed below the name.
@@ -0,0 +1,30 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ /**
3
+ * API endpoint slug.
4
+ */
5
+ export declare const apiV2UpdatedByTypeApiEndpointSlug = "updated-by-types";
6
+ /**
7
+ *
8
+ */
9
+ export type ApiV2UpdatedByTypeType = {
10
+ /**
11
+ * String representation of when the entity was created.
12
+ */
13
+ created: string;
14
+ /**
15
+ * Unique ID for the entity.
16
+ */
17
+ id: number;
18
+ /**
19
+ * String representation of the last time the entity was updated.
20
+ */
21
+ lastUpdated: string;
22
+ /**
23
+ * Human readable name.
24
+ */
25
+ name: string;
26
+ };
27
+ /**
28
+ * The API response type for "Updated by" types.
29
+ */
30
+ export type ApiV2UpdatedByTypeResponseType = ApiV2BaseResponseType<ApiV2UpdatedByTypeType[], 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.6",
4
+ "version": "1.4.0-next.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "homepage": "https://bitbucket.org/mat-och-mat/matochmat-api-client",
21
21
  "engines": {
22
- "node": ">=20.9"
22
+ "node": ">=20.10"
23
23
  },
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@matochmat/eslint-plugin": "^1.3.0",
28
+ "@matochmat/eslint-plugin": "latest",
29
29
  "@rollup/plugin-commonjs": "^28.0.1",
30
30
  "@rollup/plugin-json": "^6.1.0",
31
31
  "@rollup/plugin-node-resolve": "^15.3.0",