@pescheckit/pescheck-client-js 0.0.5
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 +220 -0
- package/dist/ApiClient.js +730 -0
- package/dist/api/AuthenticationApi.js +159 -0
- package/dist/api/ChecksApi.js +120 -0
- package/dist/api/DivisionsApi.js +257 -0
- package/dist/api/OAuthApi.js +153 -0
- package/dist/api/ProfilesApi.js +301 -0
- package/dist/api/ScreeningsApi.js +213 -0
- package/dist/api/WebhooksApi.js +210 -0
- package/dist/index.js +314 -0
- package/dist/model/CustomTokenObtainPair.js +127 -0
- package/dist/model/DivisionReadOnly.js +266 -0
- package/dist/model/DivisionWrite.js +246 -0
- package/dist/model/JWTGeneration.js +155 -0
- package/dist/model/JWTResponse.js +184 -0
- package/dist/model/OAuthApplication.js +221 -0
- package/dist/model/OAuthApplicationResponse.js +252 -0
- package/dist/model/PaginatedDivisionReadOnlyList.js +168 -0
- package/dist/model/PaginatedV2ProfileListItemList.js +168 -0
- package/dist/model/PaginatedV2ScreeningListItemList.js +168 -0
- package/dist/model/PatchedDivisionWrite.js +209 -0
- package/dist/model/PatchedV2ProfilePartialUpdate.js +102 -0
- package/dist/model/TokenRefresh.js +124 -0
- package/dist/model/V2Candidate.js +1474 -0
- package/dist/model/V2CheckField.js +168 -0
- package/dist/model/V2CheckInfo.js +316 -0
- package/dist/model/V2Document.js +302 -0
- package/dist/model/V2DocumentContent.js +126 -0
- package/dist/model/V2Money.js +126 -0
- package/dist/model/V2ProfileCheck.js +222 -0
- package/dist/model/V2ProfileCheckEntry.js +311 -0
- package/dist/model/V2ProfileCreate.js +158 -0
- package/dist/model/V2ProfileDetail.js +258 -0
- package/dist/model/V2ProfileListItem.js +182 -0
- package/dist/model/V2ProfileUpdate.js +159 -0
- package/dist/model/V2ProfileUpdateCheck.js +254 -0
- package/dist/model/V2ScreeningCheck.js +243 -0
- package/dist/model/V2ScreeningCheckEntry.js +338 -0
- package/dist/model/V2ScreeningCheckListItem.js +260 -0
- package/dist/model/V2ScreeningCreate.js +158 -0
- package/dist/model/V2ScreeningDetail.js +240 -0
- package/dist/model/V2ScreeningDetailProfile.js +101 -0
- package/dist/model/V2ScreeningListItem.js +237 -0
- package/dist/model/VerifyWebhook.js +114 -0
- package/dist/model/Webhook.js +221 -0
- package/dist/model/WebhookResponse.js +215 -0
- package/package.json +54 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Pescheck API
|
|
19
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 2.0.0
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The V2ProfileCheck model module.
|
|
31
|
+
* @module model/V2ProfileCheck
|
|
32
|
+
* @version 0.0.5
|
|
33
|
+
*/
|
|
34
|
+
var V2ProfileCheck = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>V2ProfileCheck</code>.
|
|
37
|
+
* Input serializer for one `{check_type, config}` profile-check entry. Used by profile create directly. Subclass with `PARTIAL_CONFIG = True` for screening overrides where only the fields actually being changed should be validated.
|
|
38
|
+
* @alias module:model/V2ProfileCheck
|
|
39
|
+
* @param checkType {module:model/V2ProfileCheck.CheckTypeEnum} * `addresscheck` - addresscheck * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `id2check` - id2check * `integritycheck` - integritycheck * `openhealthcarecheck` - openhealthcarecheck * `qualificationcheck` - qualificationcheck * `righttoworkcheck` - righttoworkcheck * `vogcheck` - vogcheck * `watchlist2check` - watchlist2check * `watchlistcheck` - watchlistcheck * `workreferencecheck` - workreferencecheck * `worldwidecreditcheck` - worldwidecreditcheck
|
|
40
|
+
*/
|
|
41
|
+
function V2ProfileCheck(checkType) {
|
|
42
|
+
_classCallCheck(this, V2ProfileCheck);
|
|
43
|
+
V2ProfileCheck.initialize(this, checkType);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(V2ProfileCheck, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, checkType) {
|
|
54
|
+
obj['check_type'] = checkType;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>V2ProfileCheck</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/V2ProfileCheck} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/V2ProfileCheck} The populated <code>V2ProfileCheck</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new V2ProfileCheck();
|
|
69
|
+
if (data.hasOwnProperty('check_type')) {
|
|
70
|
+
obj['check_type'] = _ApiClient["default"].convertToType(data['check_type'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('config')) {
|
|
73
|
+
obj['config'] = _ApiClient["default"].convertToType(data['config'], {
|
|
74
|
+
'String': Object
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>V2ProfileCheck</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>V2ProfileCheck</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// check to make sure all required properties are present in the JSON string
|
|
90
|
+
var _iterator = _createForOfIteratorHelper(V2ProfileCheck.RequiredProperties),
|
|
91
|
+
_step;
|
|
92
|
+
try {
|
|
93
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
+
var property = _step.value;
|
|
95
|
+
if (!data.hasOwnProperty(property)) {
|
|
96
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// ensure the json data is a string
|
|
100
|
+
} catch (err) {
|
|
101
|
+
_iterator.e(err);
|
|
102
|
+
} finally {
|
|
103
|
+
_iterator.f();
|
|
104
|
+
}
|
|
105
|
+
if (data['check_type'] && !(typeof data['check_type'] === 'string' || data['check_type'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `check_type` to be a primitive type in the JSON string but got " + data['check_type']);
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
}]);
|
|
111
|
+
}();
|
|
112
|
+
V2ProfileCheck.RequiredProperties = ["check_type"];
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* * `addresscheck` - addresscheck * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `id2check` - id2check * `integritycheck` - integritycheck * `openhealthcarecheck` - openhealthcarecheck * `qualificationcheck` - qualificationcheck * `righttoworkcheck` - righttoworkcheck * `vogcheck` - vogcheck * `watchlist2check` - watchlist2check * `watchlistcheck` - watchlistcheck * `workreferencecheck` - workreferencecheck * `worldwidecreditcheck` - worldwidecreditcheck
|
|
116
|
+
* @member {module:model/V2ProfileCheck.CheckTypeEnum} check_type
|
|
117
|
+
*/
|
|
118
|
+
V2ProfileCheck.prototype['check_type'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {Object.<String, Object>} config
|
|
122
|
+
*/
|
|
123
|
+
V2ProfileCheck.prototype['config'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Allowed values for the <code>check_type</code> property.
|
|
127
|
+
* @enum {String}
|
|
128
|
+
* @readonly
|
|
129
|
+
*/
|
|
130
|
+
V2ProfileCheck['CheckTypeEnum'] = {
|
|
131
|
+
/**
|
|
132
|
+
* value: "addresscheck"
|
|
133
|
+
* @const
|
|
134
|
+
*/
|
|
135
|
+
"addresscheck": "addresscheck",
|
|
136
|
+
/**
|
|
137
|
+
* value: "adversemediacheck"
|
|
138
|
+
* @const
|
|
139
|
+
*/
|
|
140
|
+
"adversemediacheck": "adversemediacheck",
|
|
141
|
+
/**
|
|
142
|
+
* value: "bigcheck"
|
|
143
|
+
* @const
|
|
144
|
+
*/
|
|
145
|
+
"bigcheck": "bigcheck",
|
|
146
|
+
/**
|
|
147
|
+
* value: "criminalrecordscheck"
|
|
148
|
+
* @const
|
|
149
|
+
*/
|
|
150
|
+
"criminalrecordscheck": "criminalrecordscheck",
|
|
151
|
+
/**
|
|
152
|
+
* value: "criminalrecordsuploadcheck"
|
|
153
|
+
* @const
|
|
154
|
+
*/
|
|
155
|
+
"criminalrecordsuploadcheck": "criminalrecordsuploadcheck",
|
|
156
|
+
/**
|
|
157
|
+
* value: "customintegritycheck"
|
|
158
|
+
* @const
|
|
159
|
+
*/
|
|
160
|
+
"customintegritycheck": "customintegritycheck",
|
|
161
|
+
/**
|
|
162
|
+
* value: "cvcheck"
|
|
163
|
+
* @const
|
|
164
|
+
*/
|
|
165
|
+
"cvcheck": "cvcheck",
|
|
166
|
+
/**
|
|
167
|
+
* value: "edrcheck"
|
|
168
|
+
* @const
|
|
169
|
+
*/
|
|
170
|
+
"edrcheck": "edrcheck",
|
|
171
|
+
/**
|
|
172
|
+
* value: "id2check"
|
|
173
|
+
* @const
|
|
174
|
+
*/
|
|
175
|
+
"id2check": "id2check",
|
|
176
|
+
/**
|
|
177
|
+
* value: "integritycheck"
|
|
178
|
+
* @const
|
|
179
|
+
*/
|
|
180
|
+
"integritycheck": "integritycheck",
|
|
181
|
+
/**
|
|
182
|
+
* value: "openhealthcarecheck"
|
|
183
|
+
* @const
|
|
184
|
+
*/
|
|
185
|
+
"openhealthcarecheck": "openhealthcarecheck",
|
|
186
|
+
/**
|
|
187
|
+
* value: "qualificationcheck"
|
|
188
|
+
* @const
|
|
189
|
+
*/
|
|
190
|
+
"qualificationcheck": "qualificationcheck",
|
|
191
|
+
/**
|
|
192
|
+
* value: "righttoworkcheck"
|
|
193
|
+
* @const
|
|
194
|
+
*/
|
|
195
|
+
"righttoworkcheck": "righttoworkcheck",
|
|
196
|
+
/**
|
|
197
|
+
* value: "vogcheck"
|
|
198
|
+
* @const
|
|
199
|
+
*/
|
|
200
|
+
"vogcheck": "vogcheck",
|
|
201
|
+
/**
|
|
202
|
+
* value: "watchlist2check"
|
|
203
|
+
* @const
|
|
204
|
+
*/
|
|
205
|
+
"watchlist2check": "watchlist2check",
|
|
206
|
+
/**
|
|
207
|
+
* value: "watchlistcheck"
|
|
208
|
+
* @const
|
|
209
|
+
*/
|
|
210
|
+
"watchlistcheck": "watchlistcheck",
|
|
211
|
+
/**
|
|
212
|
+
* value: "workreferencecheck"
|
|
213
|
+
* @const
|
|
214
|
+
*/
|
|
215
|
+
"workreferencecheck": "workreferencecheck",
|
|
216
|
+
/**
|
|
217
|
+
* value: "worldwidecreditcheck"
|
|
218
|
+
* @const
|
|
219
|
+
*/
|
|
220
|
+
"worldwidecreditcheck": "worldwidecreditcheck"
|
|
221
|
+
};
|
|
222
|
+
var _default = exports["default"] = V2ProfileCheck;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _V2Money = _interopRequireDefault(require("./V2Money"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Pescheck API
|
|
20
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 2.0.0
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The V2ProfileCheckEntry model module.
|
|
32
|
+
* @module model/V2ProfileCheckEntry
|
|
33
|
+
* @version 0.0.5
|
|
34
|
+
*/
|
|
35
|
+
var V2ProfileCheckEntry = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>V2ProfileCheckEntry</code>.
|
|
38
|
+
* @alias module:model/V2ProfileCheckEntry
|
|
39
|
+
* @param id {String}
|
|
40
|
+
* @param checkType {module:model/V2ProfileCheckEntry.CheckTypeEnum} * `addresscheck` - addresscheck * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `focumcheck` - focumcheck * `id2check` - id2check * `idcheck` - idcheck * `integritycheck` - integritycheck * `openhealthcarecheck` - openhealthcarecheck * `permissioncheck` - permissioncheck * `pescheckadversemediacheck` - pescheckadversemediacheck * `qualificationcheck` - qualificationcheck * `righttoworkcheck` - righttoworkcheck * `vogcheck` - vogcheck * `watchlist2check` - watchlist2check * `watchlistcheck` - watchlistcheck * `workreferencecheck` - workreferencecheck * `worldwidecreditcheck` - worldwidecreditcheck
|
|
41
|
+
* @param displayName {String}
|
|
42
|
+
* @param configuredPrice {module:model/V2Money}
|
|
43
|
+
* @param config {Object.<String, Object>}
|
|
44
|
+
* @param inputFields {Array.<Object>}
|
|
45
|
+
* @param isSystemManaged {Boolean}
|
|
46
|
+
*/
|
|
47
|
+
function V2ProfileCheckEntry(id, checkType, displayName, configuredPrice, config, inputFields, isSystemManaged) {
|
|
48
|
+
_classCallCheck(this, V2ProfileCheckEntry);
|
|
49
|
+
V2ProfileCheckEntry.initialize(this, id, checkType, displayName, configuredPrice, config, inputFields, isSystemManaged);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Initializes the fields of this object.
|
|
54
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
55
|
+
* Only for internal use.
|
|
56
|
+
*/
|
|
57
|
+
return _createClass(V2ProfileCheckEntry, null, [{
|
|
58
|
+
key: "initialize",
|
|
59
|
+
value: function initialize(obj, id, checkType, displayName, configuredPrice, config, inputFields, isSystemManaged) {
|
|
60
|
+
obj['id'] = id;
|
|
61
|
+
obj['check_type'] = checkType;
|
|
62
|
+
obj['display_name'] = displayName;
|
|
63
|
+
obj['configured_price'] = configuredPrice;
|
|
64
|
+
obj['config'] = config;
|
|
65
|
+
obj['input_fields'] = inputFields;
|
|
66
|
+
obj['is_system_managed'] = isSystemManaged;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>V2ProfileCheckEntry</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:model/V2ProfileCheckEntry} obj Optional instance to populate.
|
|
74
|
+
* @return {module:model/V2ProfileCheckEntry} The populated <code>V2ProfileCheckEntry</code> instance.
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "constructFromObject",
|
|
78
|
+
value: function constructFromObject(data, obj) {
|
|
79
|
+
if (data) {
|
|
80
|
+
obj = obj || new V2ProfileCheckEntry();
|
|
81
|
+
if (data.hasOwnProperty('id')) {
|
|
82
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('check_type')) {
|
|
85
|
+
obj['check_type'] = _ApiClient["default"].convertToType(data['check_type'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('display_name')) {
|
|
88
|
+
obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('configured_price')) {
|
|
91
|
+
obj['configured_price'] = _ApiClient["default"].convertToType(data['configured_price'], _V2Money["default"]);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('config')) {
|
|
94
|
+
obj['config'] = _ApiClient["default"].convertToType(data['config'], {
|
|
95
|
+
'String': Object
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('input_fields')) {
|
|
99
|
+
obj['input_fields'] = _ApiClient["default"].convertToType(data['input_fields'], [Object]);
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('is_system_managed')) {
|
|
102
|
+
obj['is_system_managed'] = _ApiClient["default"].convertToType(data['is_system_managed'], 'Boolean');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return obj;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Validates the JSON data with respect to <code>V2ProfileCheckEntry</code>.
|
|
110
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
111
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>V2ProfileCheckEntry</code>.
|
|
112
|
+
*/
|
|
113
|
+
}, {
|
|
114
|
+
key: "validateJSON",
|
|
115
|
+
value: function validateJSON(data) {
|
|
116
|
+
// check to make sure all required properties are present in the JSON string
|
|
117
|
+
var _iterator = _createForOfIteratorHelper(V2ProfileCheckEntry.RequiredProperties),
|
|
118
|
+
_step;
|
|
119
|
+
try {
|
|
120
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
121
|
+
var property = _step.value;
|
|
122
|
+
if (!data.hasOwnProperty(property)) {
|
|
123
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
} catch (err) {
|
|
128
|
+
_iterator.e(err);
|
|
129
|
+
} finally {
|
|
130
|
+
_iterator.f();
|
|
131
|
+
}
|
|
132
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
134
|
+
}
|
|
135
|
+
// ensure the json data is a string
|
|
136
|
+
if (data['check_type'] && !(typeof data['check_type'] === 'string' || data['check_type'] instanceof String)) {
|
|
137
|
+
throw new Error("Expected the field `check_type` to be a primitive type in the JSON string but got " + data['check_type']);
|
|
138
|
+
}
|
|
139
|
+
// ensure the json data is a string
|
|
140
|
+
if (data['display_name'] && !(typeof data['display_name'] === 'string' || data['display_name'] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `display_name` to be a primitive type in the JSON string but got " + data['display_name']);
|
|
142
|
+
}
|
|
143
|
+
// validate the optional field `configured_price`
|
|
144
|
+
if (data['configured_price']) {
|
|
145
|
+
// data not null
|
|
146
|
+
_V2Money["default"].validateJSON(data['configured_price']);
|
|
147
|
+
}
|
|
148
|
+
// ensure the json data is an array
|
|
149
|
+
if (!Array.isArray(data['input_fields'])) {
|
|
150
|
+
throw new Error("Expected the field `input_fields` to be an array in the JSON data but got " + data['input_fields']);
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
}]);
|
|
155
|
+
}();
|
|
156
|
+
V2ProfileCheckEntry.RequiredProperties = ["id", "check_type", "display_name", "configured_price", "config", "input_fields", "is_system_managed"];
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @member {String} id
|
|
160
|
+
*/
|
|
161
|
+
V2ProfileCheckEntry.prototype['id'] = undefined;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* * `addresscheck` - addresscheck * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `focumcheck` - focumcheck * `id2check` - id2check * `idcheck` - idcheck * `integritycheck` - integritycheck * `openhealthcarecheck` - openhealthcarecheck * `permissioncheck` - permissioncheck * `pescheckadversemediacheck` - pescheckadversemediacheck * `qualificationcheck` - qualificationcheck * `righttoworkcheck` - righttoworkcheck * `vogcheck` - vogcheck * `watchlist2check` - watchlist2check * `watchlistcheck` - watchlistcheck * `workreferencecheck` - workreferencecheck * `worldwidecreditcheck` - worldwidecreditcheck
|
|
165
|
+
* @member {module:model/V2ProfileCheckEntry.CheckTypeEnum} check_type
|
|
166
|
+
*/
|
|
167
|
+
V2ProfileCheckEntry.prototype['check_type'] = undefined;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @member {String} display_name
|
|
171
|
+
*/
|
|
172
|
+
V2ProfileCheckEntry.prototype['display_name'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @member {module:model/V2Money} configured_price
|
|
176
|
+
*/
|
|
177
|
+
V2ProfileCheckEntry.prototype['configured_price'] = undefined;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @member {Object.<String, Object>} config
|
|
181
|
+
*/
|
|
182
|
+
V2ProfileCheckEntry.prototype['config'] = undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @member {Array.<Object>} input_fields
|
|
186
|
+
*/
|
|
187
|
+
V2ProfileCheckEntry.prototype['input_fields'] = undefined;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @member {Boolean} is_system_managed
|
|
191
|
+
*/
|
|
192
|
+
V2ProfileCheckEntry.prototype['is_system_managed'] = undefined;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Allowed values for the <code>check_type</code> property.
|
|
196
|
+
* @enum {String}
|
|
197
|
+
* @readonly
|
|
198
|
+
*/
|
|
199
|
+
V2ProfileCheckEntry['CheckTypeEnum'] = {
|
|
200
|
+
/**
|
|
201
|
+
* value: "addresscheck"
|
|
202
|
+
* @const
|
|
203
|
+
*/
|
|
204
|
+
"addresscheck": "addresscheck",
|
|
205
|
+
/**
|
|
206
|
+
* value: "adversemediacheck"
|
|
207
|
+
* @const
|
|
208
|
+
*/
|
|
209
|
+
"adversemediacheck": "adversemediacheck",
|
|
210
|
+
/**
|
|
211
|
+
* value: "bigcheck"
|
|
212
|
+
* @const
|
|
213
|
+
*/
|
|
214
|
+
"bigcheck": "bigcheck",
|
|
215
|
+
/**
|
|
216
|
+
* value: "criminalrecordscheck"
|
|
217
|
+
* @const
|
|
218
|
+
*/
|
|
219
|
+
"criminalrecordscheck": "criminalrecordscheck",
|
|
220
|
+
/**
|
|
221
|
+
* value: "criminalrecordsuploadcheck"
|
|
222
|
+
* @const
|
|
223
|
+
*/
|
|
224
|
+
"criminalrecordsuploadcheck": "criminalrecordsuploadcheck",
|
|
225
|
+
/**
|
|
226
|
+
* value: "customintegritycheck"
|
|
227
|
+
* @const
|
|
228
|
+
*/
|
|
229
|
+
"customintegritycheck": "customintegritycheck",
|
|
230
|
+
/**
|
|
231
|
+
* value: "cvcheck"
|
|
232
|
+
* @const
|
|
233
|
+
*/
|
|
234
|
+
"cvcheck": "cvcheck",
|
|
235
|
+
/**
|
|
236
|
+
* value: "edrcheck"
|
|
237
|
+
* @const
|
|
238
|
+
*/
|
|
239
|
+
"edrcheck": "edrcheck",
|
|
240
|
+
/**
|
|
241
|
+
* value: "focumcheck"
|
|
242
|
+
* @const
|
|
243
|
+
*/
|
|
244
|
+
"focumcheck": "focumcheck",
|
|
245
|
+
/**
|
|
246
|
+
* value: "id2check"
|
|
247
|
+
* @const
|
|
248
|
+
*/
|
|
249
|
+
"id2check": "id2check",
|
|
250
|
+
/**
|
|
251
|
+
* value: "idcheck"
|
|
252
|
+
* @const
|
|
253
|
+
*/
|
|
254
|
+
"idcheck": "idcheck",
|
|
255
|
+
/**
|
|
256
|
+
* value: "integritycheck"
|
|
257
|
+
* @const
|
|
258
|
+
*/
|
|
259
|
+
"integritycheck": "integritycheck",
|
|
260
|
+
/**
|
|
261
|
+
* value: "openhealthcarecheck"
|
|
262
|
+
* @const
|
|
263
|
+
*/
|
|
264
|
+
"openhealthcarecheck": "openhealthcarecheck",
|
|
265
|
+
/**
|
|
266
|
+
* value: "permissioncheck"
|
|
267
|
+
* @const
|
|
268
|
+
*/
|
|
269
|
+
"permissioncheck": "permissioncheck",
|
|
270
|
+
/**
|
|
271
|
+
* value: "pescheckadversemediacheck"
|
|
272
|
+
* @const
|
|
273
|
+
*/
|
|
274
|
+
"pescheckadversemediacheck": "pescheckadversemediacheck",
|
|
275
|
+
/**
|
|
276
|
+
* value: "qualificationcheck"
|
|
277
|
+
* @const
|
|
278
|
+
*/
|
|
279
|
+
"qualificationcheck": "qualificationcheck",
|
|
280
|
+
/**
|
|
281
|
+
* value: "righttoworkcheck"
|
|
282
|
+
* @const
|
|
283
|
+
*/
|
|
284
|
+
"righttoworkcheck": "righttoworkcheck",
|
|
285
|
+
/**
|
|
286
|
+
* value: "vogcheck"
|
|
287
|
+
* @const
|
|
288
|
+
*/
|
|
289
|
+
"vogcheck": "vogcheck",
|
|
290
|
+
/**
|
|
291
|
+
* value: "watchlist2check"
|
|
292
|
+
* @const
|
|
293
|
+
*/
|
|
294
|
+
"watchlist2check": "watchlist2check",
|
|
295
|
+
/**
|
|
296
|
+
* value: "watchlistcheck"
|
|
297
|
+
* @const
|
|
298
|
+
*/
|
|
299
|
+
"watchlistcheck": "watchlistcheck",
|
|
300
|
+
/**
|
|
301
|
+
* value: "workreferencecheck"
|
|
302
|
+
* @const
|
|
303
|
+
*/
|
|
304
|
+
"workreferencecheck": "workreferencecheck",
|
|
305
|
+
/**
|
|
306
|
+
* value: "worldwidecreditcheck"
|
|
307
|
+
* @const
|
|
308
|
+
*/
|
|
309
|
+
"worldwidecreditcheck": "worldwidecreditcheck"
|
|
310
|
+
};
|
|
311
|
+
var _default = exports["default"] = V2ProfileCheckEntry;
|