@extrahorizon/javascript-sdk 8.9.0-dev-138-3022f93 → 8.9.0-dev-139-729209a

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.
@@ -5610,7 +5610,7 @@ const templatesV2Service = (httpWithAuth) => {
5610
5610
  };
5611
5611
  };
5612
5612
 
5613
- const version = '8.9.0-dev-138-3022f93';
5613
+ const version = '8.9.0-dev-139-729209a';
5614
5614
 
5615
5615
  /**
5616
5616
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -5580,7 +5580,7 @@ const templatesV2Service = (httpWithAuth) => {
5580
5580
  };
5581
5581
  };
5582
5582
 
5583
- const version = '8.9.0-dev-138-3022f93';
5583
+ const version = '8.9.0-dev-139-729209a';
5584
5584
 
5585
5585
  /**
5586
5586
  * Create ExtraHorizon client.
@@ -1,7 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { FindAllIterator } from '../../services/helpers';
3
3
  import { ObjectId, LanguageCode, TimeZone, PagedResult, AffectedRecords, OptionsWithRql, OptionsBase } from '../types';
4
- export interface TemplateOut {
4
+ export declare type TemplateOut = Template;
5
+ export declare type TemplateIn = TemplateCreation;
6
+ export interface Template {
5
7
  id: ObjectId;
6
8
  name: string;
7
9
  description: string;
@@ -10,7 +12,7 @@ export interface TemplateOut {
10
12
  creationTimestamp: Date;
11
13
  updateTimestamp: Date;
12
14
  }
13
- export interface TemplateIn {
15
+ export interface TemplateCreation {
14
16
  name: string;
15
17
  description: string;
16
18
  schema: TemplateObjectConfiguration;
@@ -97,7 +99,7 @@ export interface TemplatesService {
97
99
  * @param rql Add filters to the requested list.
98
100
  * @returns PagedResult<TemplateOut>
99
101
  */
100
- find(options?: OptionsWithRql): Promise<PagedResult<TemplateOut>>;
102
+ find(options?: OptionsWithRql): Promise<PagedResult<Template>>;
101
103
  /**
102
104
  * Request a list of all templates
103
105
  *
@@ -109,7 +111,7 @@ export interface TemplatesService {
109
111
  * @param rql Add filters to the requested list.
110
112
  * @returns TemplateOut[]
111
113
  */
112
- findAll(options?: OptionsWithRql): Promise<TemplateOut[]>;
114
+ findAll(options?: OptionsWithRql): Promise<Template[]>;
113
115
  /**
114
116
  * Request a list of all templates
115
117
  *
@@ -119,24 +121,24 @@ export interface TemplatesService {
119
121
  * @param rql Add filters to the requested list.
120
122
  * @returns TemplateOut[]
121
123
  */
122
- findAllIterator(options?: OptionsWithRql): FindAllIterator<TemplateOut>;
124
+ findAllIterator(options?: OptionsWithRql): FindAllIterator<Template>;
123
125
  /**
124
126
  * Find By Id
125
127
  * @param id the Id to search for
126
128
  * @returns the first element found
127
129
  */
128
- findById(id: ObjectId, options?: OptionsWithRql): Promise<TemplateOut | undefined>;
130
+ findById(id: ObjectId, options?: OptionsWithRql): Promise<Template | undefined>;
129
131
  /**
130
132
  * Find By Name
131
133
  * @param name the name to search for
132
134
  * @returns the first element found
133
135
  */
134
- findByName(name: string, options?: OptionsWithRql): Promise<TemplateOut | undefined>;
136
+ findByName(name: string, options?: OptionsWithRql): Promise<Template | undefined>;
135
137
  /**
136
138
  * Find First
137
139
  * @returns the first element found
138
140
  */
139
- findFirst(options?: OptionsWithRql): Promise<TemplateOut | undefined>;
141
+ findFirst(options?: OptionsWithRql): Promise<Template | undefined>;
140
142
  /**
141
143
  * Create a new template
142
144
  *
@@ -146,7 +148,7 @@ export interface TemplatesService {
146
148
  * @param requestBody TemplateIn
147
149
  * @returns TemplateOut
148
150
  */
149
- create(requestBody: TemplateIn, options?: OptionsBase): Promise<TemplateOut>;
151
+ create(requestBody: TemplateCreation, options?: OptionsBase): Promise<Template>;
150
152
  /**
151
153
  * Update an existing template
152
154
  *
@@ -158,7 +160,7 @@ export interface TemplatesService {
158
160
  * @returns TemplateOut
159
161
  * @throws {ResourceUnknownError}
160
162
  */
161
- update(templateId: string, requestBody: TemplateIn, options?: OptionsBase): Promise<TemplateOut>;
163
+ update(templateId: string, requestBody: TemplateCreation, options?: OptionsBase): Promise<Template>;
162
164
  /**
163
165
  * Delete a template
164
166
  *
@@ -9,6 +9,7 @@ export * from './services/tasks/types';
9
9
  export * from './services/users/types';
10
10
  export * from './services/mails/types';
11
11
  export * from './services/templates/types';
12
+ export * from './services/templatesV2/types';
12
13
  export * from './services/configurations/types';
13
14
  export * from './services/dispatchers/types';
14
15
  export * from './services/payments/types';
@@ -1 +1 @@
1
- export declare const version = "8.9.0-dev-138-3022f93";
1
+ export declare const version = "8.9.0-dev-139-729209a";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.9.0-dev-138-3022f93",
3
+ "version": "8.9.0-dev-139-729209a",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",