@matochmat/api-client 2.0.0-next.8 → 2.0.0

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.
Files changed (62) hide show
  1. package/dist/index.cjs.js +53 -37
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +27 -9
  4. package/dist/index.esm.js +31 -31
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/v1/bonusStamp.d.ts +21 -0
  7. package/dist/v1/favorite.d.ts +21 -0
  8. package/dist/v2/bonusStampCode.d.ts +38 -0
  9. package/dist/v2/cateringFunctionality.d.ts +5 -1
  10. package/dist/v2/city.d.ts +54 -10
  11. package/dist/v2/coupon.d.ts +50 -0
  12. package/dist/v2/dinnerFunctionality.d.ts +17 -3
  13. package/dist/v2/emailTemplate.d.ts +50 -0
  14. package/dist/v2/lunchBoxFunctionality.d.ts +5 -1
  15. package/dist/v2/lunchFunctionality.d.ts +5 -1
  16. package/dist/v2/notificationPreference.d.ts +34 -0
  17. package/dist/v2/policy.d.ts +30 -0
  18. package/dist/v2/restaurant.d.ts +49 -22
  19. package/dist/v2/subscriptionType.d.ts +13 -0
  20. package/dist/v2/systemSetting.d.ts +1 -1
  21. package/dist/v2/upload.d.ts +4 -0
  22. package/dist/v3/blockContent.d.ts +65 -0
  23. package/dist/v3/blockContentUploadConnectionType.d.ts +15 -0
  24. package/dist/v3/bonusStampCode.d.ts +11 -0
  25. package/dist/v3/cateringFunctionality.d.ts +11 -0
  26. package/dist/v3/coupon.d.ts +17 -0
  27. package/dist/v3/couponLocation.d.ts +30 -0
  28. package/dist/v3/dinnerFunctionality.d.ts +17 -0
  29. package/dist/v3/dinnerFunctionalityType.d.ts +11 -0
  30. package/dist/v3/emailTemplate.d.ts +11 -0
  31. package/dist/v3/lunchBoxFunctionality.d.ts +11 -0
  32. package/dist/v3/lunchFunctionality.d.ts +1 -0
  33. package/dist/v3/notificationPreference.d.ts +11 -0
  34. package/dist/v3/policy.d.ts +11 -0
  35. package/dist/v3/restaurant.d.ts +34 -0
  36. package/dist/v3/restaurantFunctionality.d.ts +5 -0
  37. package/dist/v3/restaurantManagement.d.ts +34 -0
  38. package/dist/v3/restaurantRegistration.d.ts +62 -0
  39. package/dist/v3/restaurantRegistrationState.d.ts +30 -0
  40. package/dist/v3/restaurantUploadConnection.d.ts +11 -0
  41. package/dist/v3/session.d.ts +1 -0
  42. package/dist/v3/showcaseUserRoleConnection.d.ts +2 -2
  43. package/dist/v3/subscriptionPeriod.d.ts +11 -0
  44. package/dist/v3/systemSetting.d.ts +11 -0
  45. package/dist/v3/updatedByType.d.ts +11 -0
  46. package/dist/v3/user.d.ts +66 -0
  47. package/package.json +3 -2
  48. package/dist/v2/cityUploadGrouping.d.ts +0 -3
  49. package/dist/v2/customer.d.ts +0 -4
  50. package/dist/v2/customerContact.d.ts +0 -4
  51. package/dist/v2/customerManagemement.d.ts +0 -4
  52. package/dist/v2/customerQuoteUploadGrouping.d.ts +0 -3
  53. package/dist/v2/dynamicContent.d.ts +0 -30
  54. package/dist/v2/geodata.d.ts +0 -34
  55. package/dist/v2/restaurantFunctionalityVisitibilityType.d.ts +0 -4
  56. package/dist/v2/restaurantUploadGrouping.d.ts +0 -7
  57. package/dist/v2/showcaseLocation.d.ts +0 -26
  58. package/dist/v2/showcaseUploadGrouping.d.ts +0 -3
  59. package/dist/v2/showcaseUserRoleConnection.d.ts +0 -30
  60. package/dist/v2/uploadGrouping.d.ts +0 -11
  61. package/dist/v3/geodata.d.ts +0 -11
  62. /package/dist/v2/{restaurantFunctionalityType.d.ts → restaurantFunctionality.d.ts} +0 -0
@@ -0,0 +1,11 @@
1
+ import type { ApiV2NotificationPreferenceType } from '../v2/notificationPreference';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2NotificationPreferenceApiEndpointSlug as apiV3NotificationPreferenceApiEndpointSlug } from '../v2/notificationPreference';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the notification preference endpoint.
6
+ */
7
+ export type ApiV3NotificationPreferenceType = ApiV2NotificationPreferenceType;
8
+ /**
9
+ * The API response type for notification preference items.
10
+ */
11
+ export type ApiV3NotificationPreferenceResponseType = ApiV3BaseResponseType<ApiV3NotificationPreferenceType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2PolicyType } from '../v2/policy';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2PolicyApiEndpointSlug as apiV3PolicyApiEndpointSlug } from '../v2/policy';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the policy endpoint.
6
+ */
7
+ export type ApiV3PolicyType = ApiV2PolicyType;
8
+ /**
9
+ * The API response type for policy items.
10
+ */
11
+ export type ApiV3PolicyResponseType = ApiV3BaseResponseType<ApiV3PolicyType[], number>;
@@ -0,0 +1,34 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2RestaurantType } from '../v2/restaurant';
3
+ import type { ApiV3CateringFunctionalityType } from '../v3/cateringFunctionality';
4
+ import type { ApiV3DinnerFunctionalityType } from '../v3/dinnerFunctionality';
5
+ import type { ApiV3LunchBoxFunctionalityType } from '../v3/lunchBoxFunctionality';
6
+ import type { ApiV3LunchFunctionalityType } from '../v3/lunchFunctionality';
7
+ export { apiV2RestaurantApiEndpointSlug as apiV3RestaurantApiEndpointSlug } from '../v2/restaurant';
8
+ /**
9
+ * Type for the individual array items in v3 of the API for the restaurant endpoint.
10
+ * NOTE: This is currently marked "internal" (not really, but treat it as if it were) since the interface is actively undergoing change to a modernized structures. It is very much a WIP and should be treated as such. Breaking changes to this not only can, but **will**, occur.
11
+ * @internal
12
+ */
13
+ export type ApiV3RestaurantType = Omit<ApiV2RestaurantType, 'cateringFunctionality' | 'dinnerFunctionality' | 'lunchBoxFunctionality' | 'lunchFunctionality'> & {
14
+ /**
15
+ *
16
+ */
17
+ cateringFunctionality: ApiV3CateringFunctionalityType;
18
+ /**
19
+ *
20
+ */
21
+ dinnerFunctionality: ApiV3DinnerFunctionalityType;
22
+ /**
23
+ *
24
+ */
25
+ lunchBoxFunctionality: ApiV3LunchBoxFunctionalityType;
26
+ /**
27
+ *
28
+ */
29
+ lunchFunctionality: ApiV3LunchFunctionalityType;
30
+ };
31
+ /**
32
+ * The API response type for restaurant.
33
+ */
34
+ export type ApiV3RestaurantResponseType = ApiV2BaseResponseType<ApiV3RestaurantType[], number>;
@@ -0,0 +1,5 @@
1
+ import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
2
+ /**
3
+ *
4
+ */
5
+ export type ApiV3RestaurantFunctionalityType = ApiV2RestaurantFunctionalityType;
@@ -0,0 +1,34 @@
1
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
2
+ /**
3
+ * Type for the individual array items in v3 of the API for the restaurant management endpoint.
4
+ */
5
+ export type ApiV3RestaurantManagementType = {
6
+ /**
7
+ * String representation of when the entity relation was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Unique ID for the restaurant management.
12
+ */
13
+ id: number;
14
+ /**
15
+ * String representation of when the entity relation was last updated.
16
+ */
17
+ lastUpdated: string;
18
+ /**
19
+ * Restaurant ID.
20
+ */
21
+ restaurantId: number;
22
+ /**
23
+ * User ID.
24
+ */
25
+ userId: number;
26
+ };
27
+ /**
28
+ * The API response type for restaurant management items.
29
+ */
30
+ export type ApiV3RestaurantManagementResponseType = ApiV3BaseResponseType<ApiV3RestaurantManagementType[], number>;
31
+ /**
32
+ * API endpoint slug.
33
+ */
34
+ export declare const apiV3RestaurantManagementApiEndpointSlug = "restaurant-management";
@@ -0,0 +1,62 @@
1
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
2
+ /**
3
+ * Type for the individual array items in v3 of the API for the restaurant registration endpoint.
4
+ */
5
+ export type ApiV3RestaurantRegistrationType = {
6
+ /**
7
+ *
8
+ */
9
+ additionalInfoStepCompleted: boolean;
10
+ /**
11
+ *
12
+ */
13
+ citySelectionStepCompleted: boolean;
14
+ /**
15
+ *
16
+ */
17
+ createAccountStepCompleted: boolean;
18
+ /**
19
+ * String representation of when the entity was created.
20
+ */
21
+ created: string;
22
+ /**
23
+ *
24
+ */
25
+ createRestaurantStepCompleted: boolean;
26
+ /**
27
+ * Unique ID for the entity.
28
+ */
29
+ id: number;
30
+ /**
31
+ * String representation of when the entity was last updated.
32
+ */
33
+ lastUpdated: string;
34
+ /**
35
+ * ID of the city the restaurant should be registered in.
36
+ */
37
+ restaurantCityId: number | null;
38
+ /**
39
+ * ID of the restaurant which the registration concerns.
40
+ */
41
+ restaurantId: number | null;
42
+ /**
43
+ *
44
+ */
45
+ restaurantRegistrationStateId: number;
46
+ /**
47
+ * Token to allow resuming an abandoned registration.
48
+ */
49
+ resumeToken: string;
50
+ /**
51
+ * ID of the user which the registration concerns.
52
+ */
53
+ userId: number | null;
54
+ };
55
+ /**
56
+ * The API response type for restaurant registration items.
57
+ */
58
+ export type ApiV3RestaurantRegistrationResponseType = ApiV3BaseResponseType<ApiV3RestaurantRegistrationType[], number>;
59
+ /**
60
+ * API endpoint slug.
61
+ */
62
+ export declare const apiV3RestaurantRegistrationApiEndpointSlug = "restaurant-registrations";
@@ -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 restaurant registration state endpoint.
4
+ */
5
+ export type ApiV3RestaurantRegistrationStateType = {
6
+ /**
7
+ * String representation of when the entity was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Unique ID for the entity.
12
+ */
13
+ id: number;
14
+ /**
15
+ * String representation of when the entity was last updated.
16
+ */
17
+ lastUpdated: string;
18
+ /**
19
+ * Human readable name of the state.
20
+ */
21
+ name: string;
22
+ };
23
+ /**
24
+ * The API response type for restaurant registration state items.
25
+ */
26
+ export type ApiV3RestaurantRegistrationStateResponseType = ApiV3BaseResponseType<ApiV3RestaurantRegistrationStateType[], number>;
27
+ /**
28
+ * API endpoint slug.
29
+ */
30
+ export declare const apiV3RestaurantRegistrationStateApiEndpointSlug = "restaurant-registration-states";
@@ -0,0 +1,11 @@
1
+ import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2RestaurantUploadConnectionApiEndpointSlug as apiV3RestaurantUploadConnectionApiEndpointSlug } from '../v2/restaurantUploadConnection';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the restaurant upload connection endpoint.
6
+ */
7
+ export type ApiV3RestaurantUploadConnectionType = ApiV2RestaurantUploadConnectionType;
8
+ /**
9
+ * The API response type for restaurant upload connection items.
10
+ */
11
+ export type ApiV3URestaurantUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3RestaurantUploadConnectionType[], number>;
@@ -0,0 +1 @@
1
+ export { apiV2SessionApiEndpointSlug as apiV3SessionApiEndpointSlug } from '../v2/session';
@@ -16,11 +16,11 @@ export type ApiV3ShowcaseUserRoleConnectionType = {
16
16
  */
17
17
  lastUpdated: string;
18
18
  /**
19
- * Showcase ID (first entity).
19
+ * Showcase ID.
20
20
  */
21
21
  showcaseId: number;
22
22
  /**
23
- * User role ID (second entity).
23
+ * User role ID.
24
24
  */
25
25
  userRoleId: number;
26
26
  };
@@ -0,0 +1,11 @@
1
+ import type { ApiV2SubscriptionPeriodType } from '../v2/subscriptionPeriod';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2SubscriptionPeriodApiEndpointSlug as apiV3SubscriptionPeriodApiEndpointSlug } from '../v2/subscriptionPeriod';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the subscription period endpoint.
6
+ */
7
+ export type ApiV3SubscriptionPeriodType = ApiV2SubscriptionPeriodType;
8
+ /**
9
+ * The API response type for subscription period items.
10
+ */
11
+ export type ApiV3SubscriptionPeriodResponseType = ApiV3BaseResponseType<ApiV3SubscriptionPeriodType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2SystemSettingType } from '../v2/systemSetting';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2SystemSettingApiEndpointSlug as apiV3SystemSettingApiEndpointSlug } from '../v2/systemSetting';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the system setting endpoint.
6
+ */
7
+ export type ApiV3SystemSettingType<T = unknown> = ApiV2SystemSettingType<T>;
8
+ /**
9
+ * The API response type for system setting items.
10
+ */
11
+ export type ApiV3SystemSettingResponseType = ApiV3BaseResponseType<ApiV3SystemSettingType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2UpdatedByTypeType } from '../v2/updatedByType';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2UpdatedByTypeApiEndpointSlug as apiV3UpdatedByTypeApiEndpointSlug } from '../v2/updatedByType';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the updated by type endpoint.
6
+ */
7
+ export type ApiV3UpdatedByTypeType = ApiV2UpdatedByTypeType;
8
+ /**
9
+ * The API response type for updated by type items.
10
+ */
11
+ export type ApiV3UpdatedByTypeResponseType = ApiV3BaseResponseType<ApiV3UpdatedByTypeType[], number>;
@@ -0,0 +1,66 @@
1
+ import type { ApiV1BonusStampType } from '../v1/bonusStamp';
2
+ import type { ApiV1FavoriteType } from '../v1/favorite';
3
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
4
+ import type { ApiV3NotificationPreferenceType } from '../v3/notificationPreference';
5
+ export { apiV2UserApiEndpointSlug as apiV3UserApiEndpointSlug } from '../v2/user';
6
+ /**
7
+ * Type for the individual array items in v3 of the API for the block content endpoint.
8
+ */
9
+ export type ApiV3UserType = {
10
+ /**
11
+ * List of bonus stamps the user has collected.
12
+ */
13
+ bonusStampList: ApiV1BonusStampType[];
14
+ /**
15
+ * Whether or not the user has accepted campaign and news communications.
16
+ */
17
+ campaignAndNewsCommunicationsAccepted: boolean;
18
+ /**
19
+ * String representation of when the restaurant was created.
20
+ */
21
+ created: null | string;
22
+ /**
23
+ * Email address for the user. Also used as user name when logging in.
24
+ */
25
+ email: string;
26
+ /**
27
+ * List of restaurant favorite info for restaurants user has marked as favorites.
28
+ */
29
+ favoriteList: ApiV1FavoriteType[];
30
+ /**
31
+ * User's first name. Also commonly used as display name.
32
+ */
33
+ firstName: string;
34
+ /**
35
+ * Unique entity ID.
36
+ */
37
+ id: number;
38
+ /**
39
+ * User's last name.
40
+ */
41
+ lastName: string;
42
+ /**
43
+ * String representation of the last time user was updated.
44
+ */
45
+ lastUpdated: string;
46
+ /**
47
+ * List of user notification preferences.
48
+ */
49
+ notificationPreferenceList: ApiV3NotificationPreferenceType[];
50
+ /**
51
+ * Temporary holder on password change before form submission. Note that this isn't actually ever present other than when temporarily set by the client from input data that and gets cleared immediately after form submission (and isn't even preserved if the form isn't submitted), meaning that you can never rely on this even being populated at all (because why would it be, that would be a huge security issue?).
52
+ */
53
+ password?: string;
54
+ /**
55
+ * User's phone number.
56
+ */
57
+ phone: string;
58
+ /**
59
+ * User role.
60
+ */
61
+ userRoleId: number;
62
+ };
63
+ /**
64
+ * The API response type for user items.
65
+ */
66
+ export type ApiV3UserResponseType = ApiV3BaseResponseType<ApiV3UserType[], 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": "2.0.0-next.8",
4
+ "version": "2.0.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
@@ -40,6 +40,7 @@
40
40
  "eslint-plugin-jsdoc": "^50.3.1",
41
41
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
42
42
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
43
+ "rimraf": "^6.0.1",
43
44
  "rollup": "^4.24.4",
44
45
  "standard-version": "^9.5.0",
45
46
  "tsc-alias": "^1.8.10",
@@ -48,7 +49,7 @@
48
49
  "typescript": "^5.6.2"
49
50
  },
50
51
  "scripts": {
51
- "build": "tsx scripts/generateMainIndexFile.ts && rollup -c && tsc-alias -p ./tsconfig.json",
52
+ "build": "rimraf ./dist/* && tsx scripts/generateMainIndexFile.ts && rollup -c && tsc-alias -p ./tsconfig.json",
52
53
  "docs:generate": "typedoc 2> /dev/null && git add docs && git commit --no-verify -m 'docs: Autogenerated documentation'",
53
54
  "lint": "eslint ./src --ext .ts",
54
55
  "release": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && npm run build && git add dist src && git commit --no-verify -m 'chore: Built dist files and types'; npm run docs:generate; standard-version --no-verify && git push origin main develop --tags && npm publish --access public && npm run update-next-tag && git checkout develop && git merge main --ff-only",
@@ -1,3 +0,0 @@
1
- import type { ApiV2CityUploadConnectionType } from '../v2/cityUploadConnection';
2
- import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
3
- export type ApiV2CityUploadGroupingType = ApiV2UploadGroupingType<ApiV2CityUploadConnectionType>;
@@ -1,4 +0,0 @@
1
- /**
2
- * API endpoint slug for the entity.
3
- */
4
- export declare const apiV2CustomerApiEndpointSlug = "customers";
@@ -1,4 +0,0 @@
1
- /**
2
- * API endpoint slug.
3
- */
4
- export declare const apiV2CustomerContactApiEndpointSlug = "customer-contacts";
@@ -1,4 +0,0 @@
1
- /**
2
- * API endpoint slug.
3
- */
4
- export declare const apiV2CustomerManagementApiEndpointSlug = "customer-management";
@@ -1,3 +0,0 @@
1
- import type { ApiV2CustomerQuoteUploadConnectionType } from '../v2/customerQuoteUploadConnection';
2
- import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
3
- export type ApiV2CustomerQuoteUploadGroupingType = ApiV2UploadGroupingType<ApiV2CustomerQuoteUploadConnectionType>;
@@ -1,30 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- /**
3
- * Type for the individual array items in v2 of the API for the dynamic content endpoint.
4
- */
5
- export type ApiV2DynamicContentType = {
6
- /**
7
- * Data for the dynamic content instance.
8
- */
9
- data: string;
10
- /**
11
- * Unique ID for the entity.
12
- */
13
- id: number;
14
- /**
15
- * TImestamp for when the entity was last updated.
16
- */
17
- lastUpdated: string;
18
- /**
19
- * ID of the user that the entity belongs to.
20
- */
21
- userId: number;
22
- };
23
- /**
24
- * The API response type for dynamic content.
25
- */
26
- export type ApiV2DynamicContentResponseType = ApiV2BaseResponseType<ApiV2DynamicContentType[], number>;
27
- /**
28
- * API endpoint slug.
29
- */
30
- export declare const apiV2DynamicContentApiEndpointSlug = "dynamic-content";
@@ -1,34 +0,0 @@
1
- export type ApiV2GeodataType = {
2
- /**
3
- * Timestamp for when the entity was created.
4
- */
5
- created: string;
6
- /**
7
- * Unique ID for the entity.
8
- */
9
- id: number;
10
- /**
11
- * Timestamp for when the entity was last updated.
12
- */
13
- lastUpdated: string;
14
- /**
15
- *
16
- */
17
- latitude: string;
18
- /**
19
- *
20
- */
21
- longitude: string;
22
- /**
23
- *
24
- */
25
- restaurantId: number;
26
- /**
27
- * The URL for the static map image.
28
- */
29
- staticMapImageUrl: string;
30
- };
31
- /**
32
- * API endpoint slug.
33
- */
34
- export declare const apiV2GeodataApiEndpointSlug = "geodata";
@@ -1,4 +0,0 @@
1
- /**
2
- * API endpoint slug.
3
- */
4
- export declare const apiV2RestaurantFunctionalityVisibilityTypeApiEndpointSlug = "restaurant-functionality-visibility-types";
@@ -1,7 +0,0 @@
1
- import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
2
- import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
3
- export type ApiV2RestaurantUploadGroupingType = ApiV2UploadGroupingType<ApiV2RestaurantUploadConnectionType>;
4
- /**
5
- * API endpoint slug.
6
- */
7
- export declare const apiV2RestaurantUploadGroupingApiEndpointSlug = "restaurant-upload-groupings";
@@ -1,26 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- /**
3
- * Type for the individual array items in v2 of the API for the showcase locations endpoint.
4
- */
5
- export type ApiV2ShowcaseLocationType = {
6
- /**
7
- * City ID for the location.
8
- */
9
- cityId: number;
10
- /**
11
- * Entity ID for the location.
12
- */
13
- entityId: number;
14
- /**
15
- * Timestamp for when the entity was last updated.
16
- */
17
- lastUpdated: string;
18
- };
19
- /**
20
- * The API response type for showcase locations.
21
- */
22
- export type ApiV2ShowcaseLocationResponseType = ApiV2BaseResponseType<ApiV2ShowcaseLocationType[], number>;
23
- /**
24
- * API endpoint slug.
25
- */
26
- export declare const apiV2ShowcaseLocationApiEndpointSlug = "showcase-location-lists";
@@ -1,3 +0,0 @@
1
- import type { ApiV2ShowcaseUploadConnectionType } from '../v2/showcaseUploadConnection';
2
- import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
3
- export type ApiV2ShowcaseUploadGroupingType = ApiV2UploadGroupingType<ApiV2ShowcaseUploadConnectionType>;
@@ -1,30 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- /**
3
- * Type for the individual array items in v2 of the API for the showcase user role connections endpoint.
4
- */
5
- export type ApiV2ShowcaseUserRoleConnectionType = {
6
- /**
7
- * String representation of when the entity relation was created.
8
- */
9
- created: string;
10
- /**
11
- * String representation of when the entity relation was last updated.
12
- */
13
- lastUpdated: string;
14
- /**
15
- * Showcase ID (first entity).
16
- */
17
- showcaseId: number;
18
- /**
19
- * User role ID (second entity).
20
- */
21
- userRoleId: number;
22
- };
23
- /**
24
- * The API response type for showcase user role connections.
25
- */
26
- export type ApiV2ShowcaseUserRoleConnectionResponseType = ApiV2BaseResponseType<ApiV2ShowcaseUserRoleConnectionType[], number>;
27
- /**
28
- * API endpoint slug.
29
- */
30
- export declare const apiV2ShowcaseUserRoleConnectionApiEndpointSlug = "showcase-user-role-connections";
@@ -1,11 +0,0 @@
1
- import type { ApiV2UploadType } from '../v2/upload';
2
- export type ApiV2UploadGroupingType<T> = {
3
- /**
4
- * Upload instance. This represents the actual uploaded file.
5
- */
6
- upload: ApiV2UploadType;
7
- /**
8
- * Upload connection. This is the relation entity between the uploaded file and another entity.
9
- */
10
- uploadConnection: T;
11
- };
@@ -1,11 +0,0 @@
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>;