@3sixty/api-tenant-processor 0.0.0-stage → 0.20.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.
Files changed (122) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +24 -2
  3. package/dist/es/entities/tenant.js +77 -0
  4. package/dist/es/entities/tenant.js.map +1 -0
  5. package/dist/es/entities/tenantV0.js +61 -0
  6. package/dist/es/entities/tenantV0.js.map +1 -0
  7. package/dist/es/entities/tenantV1.js +77 -0
  8. package/dist/es/entities/tenantV1.js.map +1 -0
  9. package/dist/es/index.js +30 -0
  10. package/dist/es/index.js.map +1 -0
  11. package/dist/es/models/ISingleTenantProcessorConfig.js +4 -0
  12. package/dist/es/models/ISingleTenantProcessorConfig.js.map +1 -0
  13. package/dist/es/models/ISingleTenantProcessorConstructorOptions.js +2 -0
  14. package/dist/es/models/ISingleTenantProcessorConstructorOptions.js.map +1 -0
  15. package/dist/es/models/ITenantAdminServiceConfig.js +4 -0
  16. package/dist/es/models/ITenantAdminServiceConfig.js.map +1 -0
  17. package/dist/es/models/ITenantAdminServiceConstructorOptions.js +2 -0
  18. package/dist/es/models/ITenantAdminServiceConstructorOptions.js.map +1 -0
  19. package/dist/es/models/ITenantProcessorConfig.js +4 -0
  20. package/dist/es/models/ITenantProcessorConfig.js.map +1 -0
  21. package/dist/es/models/ITenantProcessorConstructorOptions.js +2 -0
  22. package/dist/es/models/ITenantProcessorConstructorOptions.js.map +1 -0
  23. package/dist/es/models/api/ITenantCreateRequest.js +2 -0
  24. package/dist/es/models/api/ITenantCreateRequest.js.map +1 -0
  25. package/dist/es/models/api/ITenantGetByApiKeyRequest.js +4 -0
  26. package/dist/es/models/api/ITenantGetByApiKeyRequest.js.map +1 -0
  27. package/dist/es/models/api/ITenantGetByIdRequest.js +4 -0
  28. package/dist/es/models/api/ITenantGetByIdRequest.js.map +1 -0
  29. package/dist/es/models/api/ITenantGetByPublicOriginRequest.js +4 -0
  30. package/dist/es/models/api/ITenantGetByPublicOriginRequest.js.map +1 -0
  31. package/dist/es/models/api/ITenantGetResponse.js +2 -0
  32. package/dist/es/models/api/ITenantGetResponse.js.map +1 -0
  33. package/dist/es/models/api/ITenantListRequest.js +4 -0
  34. package/dist/es/models/api/ITenantListRequest.js.map +1 -0
  35. package/dist/es/models/api/ITenantListResponse.js +2 -0
  36. package/dist/es/models/api/ITenantListResponse.js.map +1 -0
  37. package/dist/es/models/api/ITenantRemoveRequest.js +4 -0
  38. package/dist/es/models/api/ITenantRemoveRequest.js.map +1 -0
  39. package/dist/es/models/api/ITenantUpdateRequest.js +2 -0
  40. package/dist/es/models/api/ITenantUpdateRequest.js.map +1 -0
  41. package/dist/es/restEntryPoints.js +13 -0
  42. package/dist/es/restEntryPoints.js.map +1 -0
  43. package/dist/es/schema.js +64 -0
  44. package/dist/es/schema.js.map +1 -0
  45. package/dist/es/singleTenantProcessor.js +81 -0
  46. package/dist/es/singleTenantProcessor.js.map +1 -0
  47. package/dist/es/tenantAdminService.js +510 -0
  48. package/dist/es/tenantAdminService.js.map +1 -0
  49. package/dist/es/tenantIdContextIdHandler.js +47 -0
  50. package/dist/es/tenantIdContextIdHandler.js.map +1 -0
  51. package/dist/es/tenantProcessor.js +164 -0
  52. package/dist/es/tenantProcessor.js.map +1 -0
  53. package/dist/es/tenantRoutes.js +417 -0
  54. package/dist/es/tenantRoutes.js.map +1 -0
  55. package/dist/es/utils/tenantIdHelper.js +23 -0
  56. package/dist/es/utils/tenantIdHelper.js.map +1 -0
  57. package/dist/types/entities/tenant.d.ts +37 -0
  58. package/dist/types/entities/tenantV0.d.ts +29 -0
  59. package/dist/types/entities/tenantV1.d.ts +37 -0
  60. package/dist/types/index.d.ts +26 -0
  61. package/dist/types/models/ISingleTenantProcessorConfig.d.ts +9 -0
  62. package/dist/types/models/ISingleTenantProcessorConstructorOptions.d.ts +10 -0
  63. package/dist/types/models/ITenantAdminServiceConfig.d.ts +24 -0
  64. package/dist/types/models/ITenantAdminServiceConstructorOptions.d.ts +20 -0
  65. package/dist/types/models/ITenantProcessorConfig.d.ts +18 -0
  66. package/dist/types/models/ITenantProcessorConstructorOptions.d.ts +15 -0
  67. package/dist/types/models/api/ITenantCreateRequest.d.ts +12 -0
  68. package/dist/types/models/api/ITenantGetByApiKeyRequest.d.ts +14 -0
  69. package/dist/types/models/api/ITenantGetByIdRequest.d.ts +14 -0
  70. package/dist/types/models/api/ITenantGetByPublicOriginRequest.d.ts +14 -0
  71. package/dist/types/models/api/ITenantGetResponse.d.ts +10 -0
  72. package/dist/types/models/api/ITenantListRequest.d.ts +27 -0
  73. package/dist/types/models/api/ITenantListResponse.d.ts +17 -0
  74. package/dist/types/models/api/ITenantRemoveRequest.d.ts +14 -0
  75. package/dist/types/models/api/ITenantUpdateRequest.d.ts +19 -0
  76. package/dist/types/restEntryPoints.d.ts +5 -0
  77. package/dist/types/schema.d.ts +5 -0
  78. package/dist/types/singleTenantProcessor.d.ts +41 -0
  79. package/dist/types/tenantAdminService.d.ts +109 -0
  80. package/dist/types/tenantIdContextIdHandler.d.ts +33 -0
  81. package/dist/types/tenantProcessor.d.ts +34 -0
  82. package/dist/types/tenantRoutes.d.ts +78 -0
  83. package/dist/types/utils/tenantIdHelper.d.ts +15 -0
  84. package/docs/changelog.md +17 -0
  85. package/docs/examples.md +81 -0
  86. package/docs/reference/classes/SingleTenantProcessor.md +130 -0
  87. package/docs/reference/classes/Tenant.md +77 -0
  88. package/docs/reference/classes/TenantAdminService.md +393 -0
  89. package/docs/reference/classes/TenantIdContextIdHandler.md +123 -0
  90. package/docs/reference/classes/TenantIdHelper.md +41 -0
  91. package/docs/reference/classes/TenantProcessor.md +103 -0
  92. package/docs/reference/classes/TenantV0.md +61 -0
  93. package/docs/reference/classes/TenantV1.md +77 -0
  94. package/docs/reference/functions/generateRestRoutesTenants.md +25 -0
  95. package/docs/reference/functions/initSchema.md +10 -0
  96. package/docs/reference/functions/tenantByApiKey.md +31 -0
  97. package/docs/reference/functions/tenantById.md +31 -0
  98. package/docs/reference/functions/tenantByPublicOrigin.md +31 -0
  99. package/docs/reference/functions/tenantCreate.md +37 -0
  100. package/docs/reference/functions/tenantList.md +31 -0
  101. package/docs/reference/functions/tenantRemove.md +31 -0
  102. package/docs/reference/functions/tenantUpdate.md +31 -0
  103. package/docs/reference/index.md +47 -0
  104. package/docs/reference/interfaces/ISingleTenantProcessorConfig.md +11 -0
  105. package/docs/reference/interfaces/ISingleTenantProcessorConstructorOptions.md +11 -0
  106. package/docs/reference/interfaces/ITenantAdminServiceConfig.md +49 -0
  107. package/docs/reference/interfaces/ITenantAdminServiceConstructorOptions.md +39 -0
  108. package/docs/reference/interfaces/ITenantCreateRequest.md +17 -0
  109. package/docs/reference/interfaces/ITenantGetByApiKeyRequest.md +17 -0
  110. package/docs/reference/interfaces/ITenantGetByIdRequest.md +17 -0
  111. package/docs/reference/interfaces/ITenantGetByPublicOriginRequest.md +17 -0
  112. package/docs/reference/interfaces/ITenantGetResponse.md +11 -0
  113. package/docs/reference/interfaces/ITenantListRequest.md +36 -0
  114. package/docs/reference/interfaces/ITenantListResponse.md +23 -0
  115. package/docs/reference/interfaces/ITenantProcessorConfig.md +33 -0
  116. package/docs/reference/interfaces/ITenantProcessorConstructorOptions.md +25 -0
  117. package/docs/reference/interfaces/ITenantRemoveRequest.md +17 -0
  118. package/docs/reference/interfaces/ITenantUpdateRequest.md +25 -0
  119. package/docs/reference/variables/restEntryPoints.md +5 -0
  120. package/docs/reference/variables/tagsTenants.md +5 -0
  121. package/locales/en.json +20 -0
  122. package/package.json +57 -5
@@ -0,0 +1,77 @@
1
+ # Class: TenantV1
2
+
3
+ Class defining the storage for node tenants.
4
+
5
+ ## Constructors
6
+
7
+ ### Constructor
8
+
9
+ > **new TenantV1**(): `TenantV1`
10
+
11
+ #### Returns
12
+
13
+ `TenantV1`
14
+
15
+ ## Properties
16
+
17
+ ### id {#id}
18
+
19
+ > **id**: `string`
20
+
21
+ The unique identifier for the tenant.
22
+
23
+ ***
24
+
25
+ ### apiKey {#apikey}
26
+
27
+ > **apiKey**: `string`
28
+
29
+ The api key for the tenant.
30
+
31
+ ***
32
+
33
+ ### label {#label}
34
+
35
+ > **label**: `string`
36
+
37
+ The label of the tenant.
38
+
39
+ ***
40
+
41
+ ### dateCreated {#datecreated}
42
+
43
+ > **dateCreated**: `string`
44
+
45
+ The date the tenant was created.
46
+
47
+ ***
48
+
49
+ ### dateModified {#datemodified}
50
+
51
+ > **dateModified**: `string`
52
+
53
+ The date the tenant was modified.
54
+
55
+ ***
56
+
57
+ ### publicOrigin? {#publicorigin}
58
+
59
+ > `optional` **publicOrigin?**: `string`
60
+
61
+ The origin available to the public for accessing the API.
62
+
63
+ ***
64
+
65
+ ### organizationId {#organizationid}
66
+
67
+ > **organizationId**: `string`
68
+
69
+ The organization id for the tenant.
70
+
71
+ ***
72
+
73
+ ### organizationIdLegacy? {#organizationidlegacy}
74
+
75
+ > `optional` **organizationIdLegacy?**: `string`
76
+
77
+ Optional list of organization aliases that can be used for legacy lookups, indexed format.
@@ -0,0 +1,25 @@
1
+ # Function: generateRestRoutesTenants()
2
+
3
+ > **generateRestRoutesTenants**(`baseRouteName`, `componentName`): `IRestRoute`\<`any`, `any`\>[]
4
+
5
+ The REST routes for tenant management.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ Prefix to prepend to the paths.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ## Returns
22
+
23
+ `IRestRoute`\<`any`, `any`\>[]
24
+
25
+ The generated routes.
@@ -0,0 +1,10 @@
1
+ # Function: initSchema()
2
+
3
+ > **initSchema**(): `void`
4
+
5
+ Initialize the schema for the node tenant processor, including the Tenant 1 to 2 migration
6
+ step which converts organizationIdLegacy from a pipe-delimited string to an array of ids.
7
+
8
+ ## Returns
9
+
10
+ `void`
@@ -0,0 +1,31 @@
1
+ # Function: tenantByApiKey()
2
+
3
+ > **tenantByApiKey**(`httpRequestContext`, `componentName`, `request`): `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
4
+
5
+ Get the tenant by api key.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantGetByApiKeyRequest`](../interfaces/ITenantGetByApiKeyRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: tenantById()
2
+
3
+ > **tenantById**(`httpRequestContext`, `componentName`, `request`): `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
4
+
5
+ Get the tenant by id.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantGetByIdRequest`](../interfaces/ITenantGetByIdRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: tenantByPublicOrigin()
2
+
3
+ > **tenantByPublicOrigin**(`httpRequestContext`, `componentName`, `request`): `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
4
+
5
+ Get the tenant by public origin.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantGetByPublicOriginRequest`](../interfaces/ITenantGetByPublicOriginRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<[`ITenantGetResponse`](../interfaces/ITenantGetResponse.md)\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,37 @@
1
+ # Function: tenantCreate()
2
+
3
+ > **tenantCreate**(`httpRequestContext`, `componentName`, `request`, `baseRouteName`): `Promise`\<`ICreatedResponse`\>
4
+
5
+ Create the tenant.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantCreateRequest`](../interfaces/ITenantCreateRequest.md)
24
+
25
+ The request.
26
+
27
+ ### baseRouteName
28
+
29
+ `string`
30
+
31
+ The base route name for the tenant.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`ICreatedResponse`\>
36
+
37
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: tenantList()
2
+
3
+ > **tenantList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<[`ITenantListResponse`](../interfaces/ITenantListResponse.md)\>
4
+
5
+ Get the list of tenants.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantListRequest`](../interfaces/ITenantListRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<[`ITenantListResponse`](../interfaces/ITenantListResponse.md)\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: tenantRemove()
2
+
3
+ > **tenantRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Remove the tenant by id.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantRemoveRequest`](../interfaces/ITenantRemoveRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: tenantUpdate()
2
+
3
+ > **tenantUpdate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Update the tenant.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes.
20
+
21
+ ### request
22
+
23
+ [`ITenantUpdateRequest`](../interfaces/ITenantUpdateRequest.md)
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,47 @@
1
+ # @3sixty/api-tenant-processor
2
+
3
+ ## Classes
4
+
5
+ - [Tenant](classes/Tenant.md)
6
+ - [TenantV0](classes/TenantV0.md)
7
+ - [TenantV1](classes/TenantV1.md)
8
+ - [SingleTenantProcessor](classes/SingleTenantProcessor.md)
9
+ - [TenantAdminService](classes/TenantAdminService.md)
10
+ - [TenantIdContextIdHandler](classes/TenantIdContextIdHandler.md)
11
+ - [TenantProcessor](classes/TenantProcessor.md)
12
+ - [TenantIdHelper](classes/TenantIdHelper.md)
13
+
14
+ ## Interfaces
15
+
16
+ - [ISingleTenantProcessorConfig](interfaces/ISingleTenantProcessorConfig.md)
17
+ - [ISingleTenantProcessorConstructorOptions](interfaces/ISingleTenantProcessorConstructorOptions.md)
18
+ - [ITenantAdminServiceConfig](interfaces/ITenantAdminServiceConfig.md)
19
+ - [ITenantAdminServiceConstructorOptions](interfaces/ITenantAdminServiceConstructorOptions.md)
20
+ - [ITenantProcessorConfig](interfaces/ITenantProcessorConfig.md)
21
+ - [ITenantProcessorConstructorOptions](interfaces/ITenantProcessorConstructorOptions.md)
22
+ - [ITenantCreateRequest](interfaces/ITenantCreateRequest.md)
23
+ - [ITenantGetByApiKeyRequest](interfaces/ITenantGetByApiKeyRequest.md)
24
+ - [ITenantGetByIdRequest](interfaces/ITenantGetByIdRequest.md)
25
+ - [ITenantGetByPublicOriginRequest](interfaces/ITenantGetByPublicOriginRequest.md)
26
+ - [ITenantGetResponse](interfaces/ITenantGetResponse.md)
27
+ - [ITenantListRequest](interfaces/ITenantListRequest.md)
28
+ - [ITenantListResponse](interfaces/ITenantListResponse.md)
29
+ - [ITenantRemoveRequest](interfaces/ITenantRemoveRequest.md)
30
+ - [ITenantUpdateRequest](interfaces/ITenantUpdateRequest.md)
31
+
32
+ ## Variables
33
+
34
+ - [restEntryPoints](variables/restEntryPoints.md)
35
+ - [tagsTenants](variables/tagsTenants.md)
36
+
37
+ ## Functions
38
+
39
+ - [initSchema](functions/initSchema.md)
40
+ - [generateRestRoutesTenants](functions/generateRestRoutesTenants.md)
41
+ - [tenantList](functions/tenantList.md)
42
+ - [tenantById](functions/tenantById.md)
43
+ - [tenantByApiKey](functions/tenantByApiKey.md)
44
+ - [tenantByPublicOrigin](functions/tenantByPublicOrigin.md)
45
+ - [tenantRemove](functions/tenantRemove.md)
46
+ - [tenantCreate](functions/tenantCreate.md)
47
+ - [tenantUpdate](functions/tenantUpdate.md)
@@ -0,0 +1,11 @@
1
+ # Interface: ISingleTenantProcessorConfig
2
+
3
+ Configuration for the single tenant processor
4
+
5
+ ## Properties
6
+
7
+ ### includeErrorStack? {#includeerrorstack}
8
+
9
+ > `optional` **includeErrorStack?**: `boolean`
10
+
11
+ Include the stack with errors.
@@ -0,0 +1,11 @@
1
+ # Interface: ISingleTenantProcessorConstructorOptions
2
+
3
+ Options for the Single Tenant Processor constructor.
4
+
5
+ ## Properties
6
+
7
+ ### config? {#config}
8
+
9
+ > `optional` **config?**: [`ISingleTenantProcessorConfig`](ISingleTenantProcessorConfig.md)
10
+
11
+ Configuration for the processor.
@@ -0,0 +1,49 @@
1
+ # Interface: ITenantAdminServiceConfig
2
+
3
+ Configuration for the tenant admin service.
4
+
5
+ ## Properties
6
+
7
+ ### tenantCacheTtlMs? {#tenantcachettlms}
8
+
9
+ > `optional` **tenantCacheTtlMs?**: `number`
10
+
11
+ The time in milliseconds a tenant is kept in the in-memory lookup cache, counted from when it
12
+ was read and not extended by use, set to 0 to disable caching. Entries are invalidated when a
13
+ tenant is created, updated or removed through this service, but only in the process that made
14
+ the change, so this is also the longest another node can serve a tenant that has been edited
15
+ elsewhere.
16
+
17
+ #### Default
18
+
19
+ ```ts
20
+ 30000
21
+ ```
22
+
23
+ ***
24
+
25
+ ### tenantCacheCapacity? {#tenantcachecapacity}
26
+
27
+ > `optional` **tenantCacheCapacity?**: `number`
28
+
29
+ The maximum number of tenant lookups to hold in the in-memory cache.
30
+
31
+ #### Default
32
+
33
+ ```ts
34
+ undefined (LfuCache default)
35
+ ```
36
+
37
+ ***
38
+
39
+ ### tenantCacheMutexTimeoutMs? {#tenantcachemutextimeoutms}
40
+
41
+ > `optional` **tenantCacheMutexTimeoutMs?**: `number`
42
+
43
+ Maximum time in milliseconds to wait for the tenant cache mutex during a cache population.
44
+
45
+ #### Default
46
+
47
+ ```ts
48
+ undefined (LfuCache default)
49
+ ```
@@ -0,0 +1,39 @@
1
+ # Interface: ITenantAdminServiceConstructorOptions
2
+
3
+ Options for the Tenant Admin Service constructor.
4
+
5
+ ## Properties
6
+
7
+ ### tenantEntityStorageType? {#tenantentitystoragetype}
8
+
9
+ > `optional` **tenantEntityStorageType?**: `string`
10
+
11
+ The entity storage for the tenants.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ tenant
17
+ ```
18
+
19
+ ***
20
+
21
+ ### platformComponentType? {#platformcomponenttype}
22
+
23
+ > `optional` **platformComponentType?**: `string`
24
+
25
+ The component type to use for firing tenant events.
26
+
27
+ #### Default
28
+
29
+ ```ts
30
+ platform
31
+ ```
32
+
33
+ ***
34
+
35
+ ### config? {#config}
36
+
37
+ > `optional` **config?**: [`ITenantAdminServiceConfig`](ITenantAdminServiceConfig.md)
38
+
39
+ Configuration for the service.
@@ -0,0 +1,17 @@
1
+ # Interface: ITenantCreateRequest
2
+
3
+ The tenant to create.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `Omit`\<`ITenant`, `"id"` \| `"dateCreated"` \| `"dateModified"`\> & `object`
10
+
11
+ The tenant to create.
12
+
13
+ #### Type Declaration
14
+
15
+ ##### id?
16
+
17
+ > `optional` **id?**: `string`
@@ -0,0 +1,17 @@
1
+ # Interface: ITenantGetByApiKeyRequest
2
+
3
+ The tenant to get by API key.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters.
12
+
13
+ #### apiKey
14
+
15
+ > **apiKey**: `string`
16
+
17
+ The API key of the tenant to get.
@@ -0,0 +1,17 @@
1
+ # Interface: ITenantGetByIdRequest
2
+
3
+ The tenant to get by id.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The id of the tenant to get.
@@ -0,0 +1,17 @@
1
+ # Interface: ITenantGetByPublicOriginRequest
2
+
3
+ The tenant to get by public origin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters.
12
+
13
+ #### publicOrigin
14
+
15
+ > **publicOrigin**: `string`
16
+
17
+ The public origin of the tenant to get.
@@ -0,0 +1,11 @@
1
+ # Interface: ITenantGetResponse
2
+
3
+ The tenant get response.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `ITenant`
10
+
11
+ The tenant.
@@ -0,0 +1,36 @@
1
+ # Interface: ITenantListRequest
2
+
3
+ The list of tenants.
4
+
5
+ ## Properties
6
+
7
+ ### query {#query}
8
+
9
+ > **query**: `object`
10
+
11
+ The query parameters.
12
+
13
+ #### conditions?
14
+
15
+ > `optional` **conditions?**: `string`
16
+
17
+ The condition for the query as JSON version of EntityCondition type.
18
+
19
+ #### properties?
20
+
21
+ > `optional` **properties?**: `string`
22
+
23
+ The properties to include in the returned tenants, separated by commas.
24
+ If not provided, all properties will be returned.
25
+
26
+ #### cursor?
27
+
28
+ > `optional` **cursor?**: `string`
29
+
30
+ The cursor to get the next chunk of tenants.
31
+
32
+ #### limit?
33
+
34
+ > `optional` **limit?**: `string`
35
+
36
+ The number of tenants to return.
@@ -0,0 +1,23 @@
1
+ # Interface: ITenantListResponse
2
+
3
+ The list of tenants.
4
+
5
+ ## Properties
6
+
7
+ ### headers? {#headers}
8
+
9
+ > `optional` **headers?**: `object`
10
+
11
+ The headers which can be used to include the cursor.
12
+
13
+ #### link?
14
+
15
+ > `optional` **link?**: `string` \| `string`[]
16
+
17
+ ***
18
+
19
+ ### body {#body}
20
+
21
+ > **body**: `ITenant`[]
22
+
23
+ The list of tenants.
@@ -0,0 +1,33 @@
1
+ # Interface: ITenantProcessorConfig
2
+
3
+ Configuration for the tenant processor
4
+
5
+ ## Properties
6
+
7
+ ### apiKeyName? {#apikeyname}
8
+
9
+ > `optional` **apiKeyName?**: `string`
10
+
11
+ The key to look for in the header or query params for the api key.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ x-api-key
17
+ ```
18
+
19
+ ***
20
+
21
+ ### apiKeyEndpoints? {#apikeyendpoints}
22
+
23
+ > `optional` **apiKeyEndpoints?**: `string`[]
24
+
25
+ The list of endpoint paths that should be checked for an api key header, can be regexp strings. Defaults to ["/login$"].
26
+
27
+ ***
28
+
29
+ ### includeErrorStack? {#includeerrorstack}
30
+
31
+ > `optional` **includeErrorStack?**: `boolean`
32
+
33
+ Include the stack with errors.