@oneblink/sdk 2.0.2-beta.1 → 2.0.2-beta.3

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/package.json CHANGED
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "name": "@oneblink/sdk",
3
3
  "description": "OneBlink SDK to serve as an entry point for all OneBlink Services in NodeJS",
4
- "version": "2.0.2-beta.1",
4
+ "version": "2.0.2-beta.3",
5
5
  "author": "OneBlink <developers@oneblink.io> (https://oneblink.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/oneblink/sdk-node-js/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@oneblink/sdk-core": "^0.4.4",
11
- "joi": "^17.7.0",
12
- "jsonwebtoken": "^8.5.1",
13
- "jwks-rsa": "^3.0.0",
14
- "node-fetch": "^2.6.7",
15
- "nodemailer": "^6.8.0",
10
+ "@oneblink/sdk-core": "^0.4.6",
11
+ "joi": "^17.8.3",
12
+ "jsonwebtoken": "^9.0.0",
13
+ "jwks-rsa": "^3.0.1",
14
+ "node-fetch": "^2.6.9",
15
+ "nodemailer": "^6.9.1",
16
16
  "uuid": "^9.0.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oneblink/release-cli": "^1.2.0",
20
20
  "@oneblink/types": "github:oneblink/types",
21
21
  "@types/content-disposition": "^0.5.5",
22
- "@types/jest": "^29.2.2",
22
+ "@types/jest": "^29.4.0",
23
23
  "@types/joi": "^17.2.3",
24
- "@types/jsonwebtoken": "^8.5.9",
24
+ "@types/jsonwebtoken": "^9.0.1",
25
25
  "@types/node-fetch": "^2.6.2",
26
- "@types/nodemailer": "^6.4.6",
27
- "@types/uuid": "^8.3.4",
28
- "@typescript-eslint/eslint-plugin": "^5.42.1",
29
- "@typescript-eslint/parser": "^5.42.1",
30
- "eslint": "^8.27.0",
31
- "eslint-config-prettier": "^8.5.0",
26
+ "@types/nodemailer": "^6.4.7",
27
+ "@types/uuid": "^9.0.1",
28
+ "@typescript-eslint/eslint-plugin": "^5.54.1",
29
+ "@typescript-eslint/parser": "^5.54.1",
30
+ "eslint": "^8.35.0",
31
+ "eslint-config-prettier": "^8.7.0",
32
32
  "eslint-plugin-prettier": "^4.2.1",
33
33
  "fixpack": "^4.0.0",
34
- "jest": "^29.3.1",
35
- "prettier": "^2.7.1",
34
+ "jest": "^29.5.0",
35
+ "prettier": "^2.8.4",
36
36
  "prettier-plugin-jsdoc": "^0.4.2",
37
- "ts-jest": "^29.0.3",
38
- "typedoc": "^0.23.20",
39
- "typescript": "^4.8.4"
37
+ "ts-jest": "^29.0.5",
38
+ "typedoc": "^0.23.26",
39
+ "typescript": "^4.9.5"
40
40
  },
41
41
  "directories": {
42
42
  "doc": "docs",
@@ -21,5 +21,6 @@ exports.default = joi_1.default.object({
21
21
  ...property_schemas_1.optionsSchemas,
22
22
  canToggleAll: property_schemas_1.canToggleAll,
23
23
  customCssClasses: property_schemas_1.customCssClasses,
24
+ requiredAll: joi_1.default.bool(),
24
25
  });
25
26
  //# sourceMappingURL=CheckboxElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxElement.js","sourceRoot":"","sources":["../../../../src/lib/forms-schema/elements/CheckboxElement.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAqB;AACrB,0DAc4B;AAEf,QAAA,IAAI,GAAG,YAAY,CAAA;AAEhC,kBAAe,aAAG,CAAC,MAAM,CAAC;IACxB,GAAG,8BAAW;IACd,IAAI,EAAJ,uBAAI;IACJ,KAAK,EAAL,wBAAK;IACL,IAAI,EAAJ,uBAAI;IACJ,GAAG,kCAAe;IAClB,QAAQ,EAAR,2BAAQ;IACR,GAAG,2CAAwB;IAC3B,GAAG,gCAAa;IAChB,YAAY,EAAE,8CAA2B;IACzC,OAAO,EAAP,0BAAO;IACP,GAAG,iCAAc;IACjB,YAAY,EAAZ,+BAAY;IACZ,gBAAgB,EAAhB,mCAAgB;CACjB,CAAC,CAAA"}
1
+ {"version":3,"file":"CheckboxElement.js","sourceRoot":"","sources":["../../../../src/lib/forms-schema/elements/CheckboxElement.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAqB;AACrB,0DAc4B;AAEf,QAAA,IAAI,GAAG,YAAY,CAAA;AAEhC,kBAAe,aAAG,CAAC,MAAM,CAAC;IACxB,GAAG,8BAAW;IACd,IAAI,EAAJ,uBAAI;IACJ,KAAK,EAAL,wBAAK;IACL,IAAI,EAAJ,uBAAI;IACJ,GAAG,kCAAe;IAClB,QAAQ,EAAR,2BAAQ;IACR,GAAG,2CAAwB;IAC3B,GAAG,gCAAa;IAChB,YAAY,EAAE,8CAA2B;IACzC,OAAO,EAAP,0BAAO;IACP,GAAG,iCAAc;IACjB,YAAY,EAAZ,+BAAY;IACZ,gBAAgB,EAAhB,mCAAgB;IAChB,WAAW,EAAE,aAAG,CAAC,IAAI,EAAE;CACxB,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { FormTypes, SubmissionEventTypes } from '@oneblink/types';
2
- declare type BaseProps = {
2
+ type BaseProps = {
3
3
  rootFormElements: FormTypes.FormElement[];
4
4
  validatedFormElements: FormTypes.FormElement[];
5
5
  propertyName: string;
@@ -5,60 +5,60 @@ import jwksClient from 'jwks-rsa';
5
5
  import { SendMailOptions } from 'nodemailer';
6
6
  export * from '@oneblink/types';
7
7
  export { HeadObjectOutput };
8
- export declare type ConstructorOptions = {
8
+ export type ConstructorOptions = {
9
9
  accessKey: string;
10
10
  secretKey: string;
11
11
  };
12
- export declare type PreFillMeta = AWSTypes.FormS3Credentials & {
12
+ export type PreFillMeta = AWSTypes.FormS3Credentials & {
13
13
  preFillFormDataId: string;
14
14
  };
15
- export declare type BaseSearchOptions = {
15
+ export type BaseSearchOptions = {
16
16
  /** Limit the number of results returned */
17
17
  limit?: number;
18
18
  /** Skip a specific number of results, used in conjunction with `limit` to enforce paging */
19
19
  offset?: number;
20
20
  };
21
- export declare type TenantBase = {
21
+ export type TenantBase = {
22
22
  awsRegion: string;
23
23
  };
24
- export declare type TenantEnvironment = {
24
+ export type TenantEnvironment = {
25
25
  apiOrigin: string;
26
26
  jwtIssuer: string;
27
27
  };
28
- export declare type TenantConfiguration = TenantBase & {
28
+ export type TenantConfiguration = TenantBase & {
29
29
  test: TenantEnvironment;
30
30
  prod: TenantEnvironment;
31
31
  };
32
- export declare type Tenant = TenantBase & TenantEnvironment & {
32
+ export type Tenant = TenantBase & TenantEnvironment & {
33
33
  jwksInstance: jwksClient.JwksClient;
34
34
  };
35
- export declare type FormSubmissionApprovalHistoryRecord = {
35
+ export type FormSubmissionApprovalHistoryRecord = {
36
36
  formSubmissionMeta: SubmissionTypes.FormSubmissionMeta;
37
37
  formApprovalFlowInstance: ApprovalTypes.FormApprovalFlowInstance;
38
38
  formSubmissionApprovals: ApprovalTypes.FormSubmissionApproval[];
39
39
  };
40
- export declare type FormSubmissionsAdministrationApprovalsResponse = MiscTypes.BaseSearchResult & {
40
+ export type FormSubmissionsAdministrationApprovalsResponse = MiscTypes.BaseSearchResult & {
41
41
  approvals: Array<FormSubmissionApprovalHistoryRecord & {
42
42
  history: FormSubmissionApprovalHistoryRecord[];
43
43
  }>;
44
44
  };
45
- export declare type FormSubmissionApprovalResponse = {
45
+ export type FormSubmissionApprovalResponse = {
46
46
  formSubmissionMeta: SubmissionTypes.FormSubmissionMeta;
47
47
  formSubmissionApproval: ApprovalTypes.FormSubmissionApproval;
48
48
  formApprovalFlowInstance: ApprovalTypes.FormApprovalFlowInstance;
49
49
  form: FormTypes.Form;
50
50
  history: FormSubmissionApprovalHistoryRecord[];
51
51
  };
52
- export declare type FormApprovalFlowInstanceResponse = {
52
+ export type FormApprovalFlowInstanceResponse = {
53
53
  formSubmissionMeta: SubmissionTypes.FormSubmissionMeta;
54
54
  formApprovalFlowInstance: ApprovalTypes.FormApprovalFlowInstance;
55
55
  form: FormTypes.Form;
56
56
  formSubmissionApprovals: ApprovalTypes.FormSubmissionApproval[];
57
57
  };
58
- export declare type FormsSearchResult = {
58
+ export type FormsSearchResult = {
59
59
  forms: FormTypes.Form[];
60
60
  } & MiscTypes.BaseSearchResult;
61
- export declare type FormsSearchOptions = BaseSearchOptions & {
61
+ export type FormsSearchOptions = BaseSearchOptions & {
62
62
  /**
63
63
  * Search on the `isAuthenticated` property of a form. Must be either `true`
64
64
  * or `false` or not specified.
@@ -77,7 +77,7 @@ export declare type FormsSearchOptions = BaseSearchOptions & {
77
77
  */
78
78
  formsAppEnvironmentId?: number;
79
79
  };
80
- export declare type FormSubmissionHistorySearchParameters = BaseSearchOptions & {
80
+ export type FormSubmissionHistorySearchParameters = BaseSearchOptions & {
81
81
  /** Search for Submissions for a particular form Id */
82
82
  formId: number;
83
83
  /** Search for Submissions starting at this date */
@@ -90,14 +90,14 @@ export declare type FormSubmissionHistorySearchParameters = BaseSearchOptions &
90
90
  */
91
91
  isValid?: boolean;
92
92
  };
93
- export declare type FormSubmissionHistorySearchResults = MiscTypes.BaseSearchResult & {
93
+ export type FormSubmissionHistorySearchResults = MiscTypes.BaseSearchResult & {
94
94
  formSubmissionMeta: SubmissionTypes.FormSubmissionMeta[];
95
95
  };
96
- export declare type EmailTemplatesSearchResult = {
96
+ export type EmailTemplatesSearchResult = {
97
97
  emailTemplates: EmailTemplateTypes.EmailTemplate[];
98
98
  } & MiscTypes.BaseSearchResult;
99
- export declare type EmailTemplatesSearchOptions = BaseSearchOptions;
100
- export declare type FormSubmissionMetaResult = {
99
+ export type EmailTemplatesSearchOptions = BaseSearchOptions;
100
+ export type FormSubmissionMetaResult = {
101
101
  /** The meta record for the submission */
102
102
  formSubmissionMeta: SubmissionTypes.FormSubmissionMeta;
103
103
  /**
@@ -124,7 +124,7 @@ export declare type FormSubmissionMetaResult = {
124
124
  formSubmissionSchedulingBooking?: SchedulingTypes.SchedulingBooking;
125
125
  };
126
126
  export { SendMailOptions };
127
- export declare type SendEmailResult = {
127
+ export type SendEmailResult = {
128
128
  envelope: {
129
129
  from: string;
130
130
  to: string[];
@@ -133,14 +133,14 @@ export declare type SendEmailResult = {
133
133
  response: string;
134
134
  raw: string;
135
135
  };
136
- export declare type FormsAppEnvironmentsSearchResult = {
136
+ export type FormsAppEnvironmentsSearchResult = {
137
137
  formsAppEnvironments: EnvironmentTypes.FormsAppEnvironment[];
138
138
  } & MiscTypes.BaseSearchResult;
139
- export declare type FormsAppEnvironmentsSearchOptions = BaseSearchOptions;
140
- export declare type JobsSearchResult = MiscTypes.BaseSearchResult & {
139
+ export type FormsAppEnvironmentsSearchOptions = BaseSearchOptions;
140
+ export type JobsSearchResult = MiscTypes.BaseSearchResult & {
141
141
  jobs: SubmissionTypes.FormsAppJob[];
142
142
  };
143
- export declare type DataManagerRegexFilter = {
143
+ export type DataManagerRegexFilter = {
144
144
  /** The Regular expression to search with. This can just be a simple string if desired. */
145
145
  $regex: string;
146
146
  /**
@@ -150,7 +150,7 @@ export declare type DataManagerRegexFilter = {
150
150
  */
151
151
  $options?: string;
152
152
  };
153
- export declare type DataManagerNumberFilter = {
153
+ export type DataManagerNumberFilter = {
154
154
  /** Equal to */
155
155
  $eq?: number;
156
156
  /** Greater than */
@@ -162,7 +162,7 @@ export declare type DataManagerNumberFilter = {
162
162
  /** Less than or Equal to */
163
163
  $lte?: number;
164
164
  };
165
- export declare type DataManagerMultipleSelectionsArrayFilter = {
165
+ export type DataManagerMultipleSelectionsArrayFilter = {
166
166
  $elemMatch: {
167
167
  /**
168
168
  * The array of strings to match. Records will be returned if any of the
@@ -171,24 +171,24 @@ export declare type DataManagerMultipleSelectionsArrayFilter = {
171
171
  $in: Array<string>;
172
172
  };
173
173
  };
174
- export declare type DataManagerStringArrayFilter = {
174
+ export type DataManagerStringArrayFilter = {
175
175
  /**
176
176
  * The array of strings to match. Records will be returned if the value in the
177
177
  * record matches any of these
178
178
  */
179
179
  $in: Array<string>;
180
180
  };
181
- export declare type DataManagerStringArrayComplianceFilter = {
181
+ export type DataManagerStringArrayComplianceFilter = {
182
182
  /** The filter for the value */
183
183
  value?: DataManagerStringArrayFilter;
184
184
  /** The filter for the notes */
185
185
  notes?: DataManagerRegexFilter;
186
186
  };
187
- export declare type DataManagerBooleanFilter = {
187
+ export type DataManagerBooleanFilter = {
188
188
  /** The boolean value to match */
189
189
  $eq: boolean;
190
190
  };
191
- export declare type DataManagerDateTimeFilter = {
191
+ export type DataManagerDateTimeFilter = {
192
192
  /** Equal to */
193
193
  $eq?: string;
194
194
  /** Greater than */
@@ -200,11 +200,11 @@ export declare type DataManagerDateTimeFilter = {
200
200
  /** Less than or Equal to */
201
201
  $lte?: string;
202
202
  };
203
- export declare type DataManagerUUIDFilter = {
203
+ export type DataManagerUUIDFilter = {
204
204
  /** The UUID string to match */
205
205
  $eq: string;
206
206
  };
207
- export declare type DataManagerFreshdeskDependentFieldFilter = {
207
+ export type DataManagerFreshdeskDependentFieldFilter = {
208
208
  /**
209
209
  * The filter for the `category`. This property is treated as a non multi
210
210
  * `select` element.
@@ -218,7 +218,7 @@ export declare type DataManagerFreshdeskDependentFieldFilter = {
218
218
  /** The filter for the `item`. This property is treated as a non multi `select` element. */
219
219
  item?: DataManagerStringArrayFilter;
220
220
  };
221
- export declare type DataManagerNestedFilterFilter = {
221
+ export type DataManagerNestedFilterFilter = {
222
222
  /**
223
223
  * The filter for an element in a `repeatableSet` or `form` element. Use
224
224
  * whichever filter type is appropriate for each element type.
@@ -248,8 +248,8 @@ export declare type DataManagerNestedFilterFilter = {
248
248
  * - Element of type: form, repeatableSet : USE `DataManagerNestedFilterFilter`.
249
249
  * `repeatableSet` requires `unwindRepeatableSets` be `true`
250
250
  */
251
- export declare type DataManagerSubmissionPropertyFilter = DataManagerRegexFilter | DataManagerNumberFilter | DataManagerStringArrayComplianceFilter | DataManagerMultipleSelectionsArrayFilter | DataManagerStringArrayFilter | DataManagerBooleanFilter | DataManagerDateTimeFilter | DataManagerFreshdeskDependentFieldFilter;
252
- export declare type SearchDataManagerRecordsOptions = {
251
+ export type DataManagerSubmissionPropertyFilter = DataManagerRegexFilter | DataManagerNumberFilter | DataManagerStringArrayComplianceFilter | DataManagerMultipleSelectionsArrayFilter | DataManagerStringArrayFilter | DataManagerBooleanFilter | DataManagerDateTimeFilter | DataManagerFreshdeskDependentFieldFilter;
252
+ export type SearchDataManagerRecordsOptions = {
253
253
  formId: number;
254
254
  /** Required for filtering by `repeatableSets` */
255
255
  unwindRepeatableSets?: boolean;
@@ -293,7 +293,7 @@ export declare type SearchDataManagerRecordsOptions = {
293
293
  submission?: Record<string, DataManagerSubmissionPropertyFilter>;
294
294
  };
295
295
  };
296
- export declare type SearchDataManagerRecordsResponse = {
296
+ export type SearchDataManagerRecordsResponse = {
297
297
  meta: {
298
298
  limit: number;
299
299
  offset: number;