@digital8/security-registers-backend-ts-sdk 0.0.84 → 0.0.86

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.84
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.86
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/security-registers-backend-ts-sdk@0.0.84 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.86 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2: string;
35
+ addressLine2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addressLine1' in value) || value['addressLine1'] === undefined)
26
26
  return false;
27
- if (!('addressLine2' in value) || value['addressLine2'] === undefined)
28
- return false;
29
27
  if (!('suburb' in value) || value['suburb'] === undefined)
30
28
  return false;
31
29
  if (!('city' in value) || value['city'] === undefined)
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'id': json['id'] == null ? undefined : json['id'],
52
50
  'addressLine1': json['addressLine1'],
53
- 'addressLine2': json['addressLine2'],
51
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
54
52
  'suburb': json['suburb'],
55
53
  'city': json['city'],
56
54
  'state': json['state'],
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText: string;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
- if (!('altText' in value) || value['altText'] === undefined)
34
- return false;
35
33
  if (!('index' in value) || value['index'] === undefined)
36
34
  return false;
37
35
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'filePath': json['filePath'],
51
49
  'fileName': json['fileName'],
52
50
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'],
51
+ 'altText': json['altText'] == null ? undefined : json['altText'],
54
52
  'index': json['index'],
55
53
  'fileId': json['fileId'],
56
54
  };
@@ -53,16 +53,16 @@ export interface UsersCreateWithRoleRequest {
53
53
  role: UsersCreateWithRoleRequestRoleEnum;
54
54
  /**
55
55
  *
56
- * @type {number}
56
+ * @type {Array<number>}
57
57
  * @memberof UsersCreateWithRoleRequest
58
58
  */
59
- venueId?: number;
59
+ venueIds?: Array<number>;
60
60
  /**
61
61
  *
62
- * @type {number}
62
+ * @type {Array<number>}
63
63
  * @memberof UsersCreateWithRoleRequest
64
64
  */
65
- securityCompanyId?: number;
65
+ securityCompanyIds?: Array<number>;
66
66
  }
67
67
  /**
68
68
  * @export
@@ -60,8 +60,8 @@ function UsersCreateWithRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'mobile': json['mobile'],
61
61
  'password': json['password'],
62
62
  'role': json['role'],
63
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
64
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
63
+ 'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
64
+ 'securityCompanyIds': json['security_company_ids'] == null ? undefined : json['security_company_ids'],
65
65
  };
66
66
  }
67
67
  function UsersCreateWithRoleRequestToJSON(json) {
@@ -79,7 +79,7 @@ function UsersCreateWithRoleRequestToJSONTyped(value, ignoreDiscriminator) {
79
79
  'mobile': value['mobile'],
80
80
  'password': value['password'],
81
81
  'role': value['role'],
82
- 'venue_id': value['venueId'],
83
- 'security_company_id': value['securityCompanyId'],
82
+ 'venue_ids': value['venueIds'],
83
+ 'security_company_ids': value['securityCompanyIds'],
84
84
  };
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2: string;
39
+ addressLine2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,7 +80,6 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
- if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
84
83
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
84
  if (!('city' in value) || value['city'] === undefined) return false;
86
85
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
 
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'addressLine1': json['addressLine1'],
105
- 'addressLine2': json['addressLine2'],
104
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
106
105
  'suburb': json['suburb'],
107
106
  'city': json['city'],
108
107
  'state': json['state'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText: string;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -71,7 +71,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
- if (!('altText' in value) || value['altText'] === undefined) return false;
75
74
  if (!('index' in value) || value['index'] === undefined) return false;
76
75
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
77
76
  return true;
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
91
90
  'filePath': json['filePath'],
92
91
  'fileName': json['fileName'],
93
92
  'mimeType': json['mimeType'],
94
- 'altText': json['altText'],
93
+ 'altText': json['altText'] == null ? undefined : json['altText'],
95
94
  'index': json['index'],
96
95
  'fileId': json['fileId'],
97
96
  };
@@ -57,16 +57,16 @@ export interface UsersCreateWithRoleRequest {
57
57
  role: UsersCreateWithRoleRequestRoleEnum;
58
58
  /**
59
59
  *
60
- * @type {number}
60
+ * @type {Array<number>}
61
61
  * @memberof UsersCreateWithRoleRequest
62
62
  */
63
- venueId?: number;
63
+ venueIds?: Array<number>;
64
64
  /**
65
65
  *
66
- * @type {number}
66
+ * @type {Array<number>}
67
67
  * @memberof UsersCreateWithRoleRequest
68
68
  */
69
- securityCompanyId?: number;
69
+ securityCompanyIds?: Array<number>;
70
70
  }
71
71
 
72
72
 
@@ -111,8 +111,8 @@ export function UsersCreateWithRoleRequestFromJSONTyped(json: any, ignoreDiscrim
111
111
  'mobile': json['mobile'],
112
112
  'password': json['password'],
113
113
  'role': json['role'],
114
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
115
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
114
+ 'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
115
+ 'securityCompanyIds': json['security_company_ids'] == null ? undefined : json['security_company_ids'],
116
116
  };
117
117
  }
118
118
 
@@ -133,8 +133,8 @@ export function UsersCreateWithRoleRequestToJSONTyped(value?: UsersCreateWithRol
133
133
  'mobile': value['mobile'],
134
134
  'password': value['password'],
135
135
  'role': value['role'],
136
- 'venue_id': value['venueId'],
137
- 'security_company_id': value['securityCompanyId'],
136
+ 'venue_ids': value['venueIds'],
137
+ 'security_company_ids': value['securityCompanyIds'],
138
138
  };
139
139
  }
140
140