capacitor-record360sdk 1.0.0 → 7.0.0
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 +26 -77
- package/android/build.gradle +14 -14
- package/dist/docs.json +26 -622
- package/dist/esm/definitions.d.ts +10 -7
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +4 -4
- package/dist/esm/web.js +1 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorRecord360SDKPlugin/CapacitorRecord360SDKPlugin.swift +19 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ npx cap sync
|
|
|
16
16
|
* [`launchRecord360(...)`](#launchrecord360)
|
|
17
17
|
* [`launchReferenceCapture(...)`](#launchreferencecapture)
|
|
18
18
|
* [Interfaces](#interfaces)
|
|
19
|
+
* [Type Aliases](#type-aliases)
|
|
19
20
|
|
|
20
21
|
</docgen-index>
|
|
21
22
|
|
|
@@ -25,7 +26,7 @@ npx cap sync
|
|
|
25
26
|
### launchRecord360(...)
|
|
26
27
|
|
|
27
28
|
```typescript
|
|
28
|
-
launchRecord360(identity
|
|
29
|
+
launchRecord360(identity?: Record360Identity | undefined) => Promise<void>
|
|
29
30
|
```
|
|
30
31
|
|
|
31
32
|
| Param | Type |
|
|
@@ -38,12 +39,12 @@ launchRecord360(identity: Record360Identity) => Promise<void>
|
|
|
38
39
|
### launchReferenceCapture(...)
|
|
39
40
|
|
|
40
41
|
```typescript
|
|
41
|
-
launchReferenceCapture(options: { referenceNumber: string; workOrderId
|
|
42
|
+
launchReferenceCapture(options: { referenceNumber: string; workOrderId?: number; workOrderLabel?: string; identity?: Record360Identity; }) => Promise<void>
|
|
42
43
|
```
|
|
43
44
|
|
|
44
|
-
| Param | Type
|
|
45
|
-
| ------------- |
|
|
46
|
-
| **`options`** | <code>{ referenceNumber: string; workOrderId
|
|
45
|
+
| Param | Type |
|
|
46
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
47
|
+
| **`options`** | <code>{ referenceNumber: string; workOrderId?: number; workOrderLabel?: string; identity?: <a href="#record360identity">Record360Identity</a>; }</code> |
|
|
47
48
|
|
|
48
49
|
--------------------
|
|
49
50
|
|
|
@@ -51,79 +52,27 @@ launchReferenceCapture(options: { referenceNumber: string; workOrderId: number;
|
|
|
51
52
|
### Interfaces
|
|
52
53
|
|
|
53
54
|
|
|
55
|
+
#### R360PasswordIdentity
|
|
56
|
+
|
|
57
|
+
| Prop | Type |
|
|
58
|
+
| -------------- | ------------------- |
|
|
59
|
+
| **`username`** | <code>string</code> |
|
|
60
|
+
| **`password`** | <code>string</code> |
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
#### R360UserTokenIdentity
|
|
64
|
+
|
|
65
|
+
| Prop | Type |
|
|
66
|
+
| --------------- | ------------------- |
|
|
67
|
+
| **`userId`** | <code>string</code> |
|
|
68
|
+
| **`userToken`** | <code>string</code> |
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Type Aliases
|
|
72
|
+
|
|
73
|
+
|
|
54
74
|
#### Record360Identity
|
|
55
75
|
|
|
56
|
-
|
|
57
|
-
| --------------- | ----------------------------------------- |
|
|
58
|
-
| **`username`** | <code>string</code> |
|
|
59
|
-
| **`password`** | <code>string</code> |
|
|
60
|
-
| **`userId`** | <code><a href="#string">String</a></code> |
|
|
61
|
-
| **`userToken`** | <code><a href="#string">String</a></code> |
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
#### String
|
|
65
|
-
|
|
66
|
-
Allows manipulation and formatting of text strings and determination and location of substrings within strings.
|
|
67
|
-
|
|
68
|
-
| Prop | Type | Description |
|
|
69
|
-
| ------------ | ------------------- | ------------------------------------------------------------ |
|
|
70
|
-
| **`length`** | <code>number</code> | Returns the length of a <a href="#string">String</a> object. |
|
|
71
|
-
|
|
72
|
-
| Method | Signature | Description |
|
|
73
|
-
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
-
| **toString** | () => string | Returns a string representation of a string. |
|
|
75
|
-
| **charAt** | (pos: number) => string | Returns the character at the specified index. |
|
|
76
|
-
| **charCodeAt** | (index: number) => number | Returns the Unicode value of the character at the specified location. |
|
|
77
|
-
| **concat** | (...strings: string[]) => string | Returns a string that contains the concatenation of two or more strings. |
|
|
78
|
-
| **indexOf** | (searchString: string, position?: number \| undefined) => number | Returns the position of the first occurrence of a substring. |
|
|
79
|
-
| **lastIndexOf** | (searchString: string, position?: number \| undefined) => number | Returns the last occurrence of a substring in the string. |
|
|
80
|
-
| **localeCompare** | (that: string) => number | Determines whether two strings are equivalent in the current locale. |
|
|
81
|
-
| **match** | (regexp: string \| <a href="#regexp">RegExp</a>) => <a href="#regexpmatcharray">RegExpMatchArray</a> \| null | Matches a string with a regular expression, and returns an array containing the results of that search. |
|
|
82
|
-
| **replace** | (searchValue: string \| <a href="#regexp">RegExp</a>, replaceValue: string) => string | Replaces text in a string, using a regular expression or search string. |
|
|
83
|
-
| **replace** | (searchValue: string \| <a href="#regexp">RegExp</a>, replacer: (substring: string, ...args: any[]) => string) => string | Replaces text in a string, using a regular expression or search string. |
|
|
84
|
-
| **search** | (regexp: string \| <a href="#regexp">RegExp</a>) => number | Finds the first substring match in a regular expression search. |
|
|
85
|
-
| **slice** | (start?: number \| undefined, end?: number \| undefined) => string | Returns a section of a string. |
|
|
86
|
-
| **split** | (separator: string \| <a href="#regexp">RegExp</a>, limit?: number \| undefined) => string[] | Split a string into substrings using the specified separator and return them as an array. |
|
|
87
|
-
| **substring** | (start: number, end?: number \| undefined) => string | Returns the substring at the specified location within a <a href="#string">String</a> object. |
|
|
88
|
-
| **toLowerCase** | () => string | Converts all the alphabetic characters in a string to lowercase. |
|
|
89
|
-
| **toLocaleLowerCase** | (locales?: string \| string[] \| undefined) => string | Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. |
|
|
90
|
-
| **toUpperCase** | () => string | Converts all the alphabetic characters in a string to uppercase. |
|
|
91
|
-
| **toLocaleUpperCase** | (locales?: string \| string[] \| undefined) => string | Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. |
|
|
92
|
-
| **trim** | () => string | Removes the leading and trailing white space and line terminator characters from a string. |
|
|
93
|
-
| **substr** | (from: number, length?: number \| undefined) => string | Gets a substring beginning at the specified location and having the specified length. |
|
|
94
|
-
| **valueOf** | () => string | Returns the primitive value of the specified object. |
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
#### RegExpMatchArray
|
|
98
|
-
|
|
99
|
-
| Prop | Type |
|
|
100
|
-
| ----------- | ------------------- |
|
|
101
|
-
| **`index`** | <code>number</code> |
|
|
102
|
-
| **`input`** | <code>string</code> |
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
#### RegExp
|
|
106
|
-
|
|
107
|
-
| Prop | Type | Description |
|
|
108
|
-
| ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
109
|
-
| **`source`** | <code>string</code> | Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. |
|
|
110
|
-
| **`global`** | <code>boolean</code> | Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. |
|
|
111
|
-
| **`ignoreCase`** | <code>boolean</code> | Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. |
|
|
112
|
-
| **`multiline`** | <code>boolean</code> | Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. |
|
|
113
|
-
| **`lastIndex`** | <code>number</code> | |
|
|
114
|
-
|
|
115
|
-
| Method | Signature | Description |
|
|
116
|
-
| ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
117
|
-
| **exec** | (string: string) => <a href="#regexpexecarray">RegExpExecArray</a> \| null | Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. |
|
|
118
|
-
| **test** | (string: string) => boolean | Returns a Boolean value that indicates whether or not a pattern exists in a searched string. |
|
|
119
|
-
| **compile** | () => this | |
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
#### RegExpExecArray
|
|
123
|
-
|
|
124
|
-
| Prop | Type |
|
|
125
|
-
| ----------- | ------------------- |
|
|
126
|
-
| **`index`** | <code>number</code> |
|
|
127
|
-
| **`input`** | <code>string</code> |
|
|
76
|
+
<code><a href="#r360passwordidentity">R360PasswordIdentity</a> | <a href="#r360usertokenidentity">R360UserTokenIdentity</a></code>
|
|
128
77
|
|
|
129
78
|
</docgen-api>
|
package/android/build.gradle
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
ext {
|
|
3
3
|
junitVersion = '4.13.2'
|
|
4
|
-
androidxAppCompatVersion = '1.
|
|
5
|
-
androidxJunitVersion = '1.1
|
|
6
|
-
androidxEspressoCoreVersion = '3.
|
|
7
|
-
androidXCore = '1.
|
|
8
|
-
compileSdk =
|
|
4
|
+
androidxAppCompatVersion = '1.7.0'
|
|
5
|
+
androidxJunitVersion = '1.2.1'
|
|
6
|
+
androidxEspressoCoreVersion = '3.6.1'
|
|
7
|
+
androidXCore = '1.15.0'
|
|
8
|
+
compileSdk = 35
|
|
9
9
|
minSdkVersion = 24
|
|
10
|
-
targetSdkVersion =
|
|
10
|
+
targetSdkVersion = 35
|
|
11
11
|
kotlinVersion = '2.0.21'
|
|
12
|
-
androidxCoreVersion = '1.
|
|
13
|
-
androidxActivityVersion = '1.
|
|
14
|
-
androidxFragmentVersion = '1.
|
|
12
|
+
androidxCoreVersion = '1.15.0'
|
|
13
|
+
androidxActivityVersion = '1.9.2'
|
|
14
|
+
androidxFragmentVersion = '1.8.4'
|
|
15
15
|
androidxCoordinatorLayoutVersion = '1.2.0'
|
|
16
|
-
androidxWebkitVersion = '1.
|
|
16
|
+
androidxWebkitVersion = '1.12.1'
|
|
17
17
|
cordovaAndroidVersion = '10.1.1'
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ buildscript {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
dependencies {
|
|
37
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
37
|
+
classpath 'com.android.tools.build:gradle:8.7.3'
|
|
38
38
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -66,12 +66,12 @@ android {
|
|
|
66
66
|
abortOnError false
|
|
67
67
|
}
|
|
68
68
|
compileOptions {
|
|
69
|
-
sourceCompatibility JavaVersion.
|
|
70
|
-
targetCompatibility JavaVersion.
|
|
69
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
70
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
71
71
|
coreLibraryDesugaringEnabled true
|
|
72
72
|
}
|
|
73
73
|
kotlinOptions {
|
|
74
|
-
jvmTarget = '
|
|
74
|
+
jvmTarget = '21'
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
package/dist/docs.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "launchRecord360",
|
|
10
|
-
"signature": "(identity
|
|
10
|
+
"signature": "(identity?: Record360Identity | undefined) => Promise<void>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "identity",
|
|
14
14
|
"docs": "",
|
|
15
|
-
"type": "Record360Identity"
|
|
15
|
+
"type": "Record360Identity | undefined"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"returns": "Promise<void>",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "launchReferenceCapture",
|
|
28
|
-
"signature": "(options: { referenceNumber: string; workOrderId
|
|
28
|
+
"signature": "(options: { referenceNumber: string; workOrderId?: number; workOrderLabel?: string; identity?: Record360Identity; }) => Promise<void>",
|
|
29
29
|
"parameters": [
|
|
30
30
|
{
|
|
31
31
|
"name": "options",
|
|
32
32
|
"docs": "",
|
|
33
|
-
"type": "{ referenceNumber: string; workOrderId
|
|
33
|
+
"type": "{ referenceNumber: string; workOrderId?: number | undefined; workOrderLabel?: string | undefined; identity?: Record360Identity | undefined; }"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"returns": "Promise<void>",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"interfaces": [
|
|
48
48
|
{
|
|
49
|
-
"name": "
|
|
50
|
-
"slug": "
|
|
49
|
+
"name": "R360PasswordIdentity",
|
|
50
|
+
"slug": "r360passwordidentity",
|
|
51
51
|
"docs": "",
|
|
52
52
|
"tags": [],
|
|
53
53
|
"methods": [],
|
|
@@ -65,650 +65,54 @@
|
|
|
65
65
|
"docs": "",
|
|
66
66
|
"complexTypes": [],
|
|
67
67
|
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "userId",
|
|
71
|
-
"tags": [],
|
|
72
|
-
"docs": "",
|
|
73
|
-
"complexTypes": [
|
|
74
|
-
"String"
|
|
75
|
-
],
|
|
76
|
-
"type": "String"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "userToken",
|
|
80
|
-
"tags": [],
|
|
81
|
-
"docs": "",
|
|
82
|
-
"complexTypes": [
|
|
83
|
-
"String"
|
|
84
|
-
],
|
|
85
|
-
"type": "String"
|
|
86
68
|
}
|
|
87
69
|
]
|
|
88
70
|
},
|
|
89
71
|
{
|
|
90
|
-
"name": "
|
|
91
|
-
"slug": "
|
|
92
|
-
"docs": "Allows manipulation and formatting of text strings and determination and location of substrings within strings.",
|
|
93
|
-
"tags": [],
|
|
94
|
-
"methods": [
|
|
95
|
-
{
|
|
96
|
-
"name": "toString",
|
|
97
|
-
"signature": "() => string",
|
|
98
|
-
"parameters": [],
|
|
99
|
-
"returns": "string",
|
|
100
|
-
"tags": [],
|
|
101
|
-
"docs": "Returns a string representation of a string.",
|
|
102
|
-
"complexTypes": [],
|
|
103
|
-
"slug": "tostring"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "charAt",
|
|
107
|
-
"signature": "(pos: number) => string",
|
|
108
|
-
"parameters": [
|
|
109
|
-
{
|
|
110
|
-
"name": "pos",
|
|
111
|
-
"docs": "The zero-based index of the desired character.",
|
|
112
|
-
"type": "number"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"returns": "string",
|
|
116
|
-
"tags": [
|
|
117
|
-
{
|
|
118
|
-
"name": "param",
|
|
119
|
-
"text": "pos The zero-based index of the desired character."
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"docs": "Returns the character at the specified index.",
|
|
123
|
-
"complexTypes": [],
|
|
124
|
-
"slug": "charat"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "charCodeAt",
|
|
128
|
-
"signature": "(index: number) => number",
|
|
129
|
-
"parameters": [
|
|
130
|
-
{
|
|
131
|
-
"name": "index",
|
|
132
|
-
"docs": "The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",
|
|
133
|
-
"type": "number"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"returns": "number",
|
|
137
|
-
"tags": [
|
|
138
|
-
{
|
|
139
|
-
"name": "param",
|
|
140
|
-
"text": "index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned."
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"docs": "Returns the Unicode value of the character at the specified location.",
|
|
144
|
-
"complexTypes": [],
|
|
145
|
-
"slug": "charcodeat"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "concat",
|
|
149
|
-
"signature": "(...strings: string[]) => string",
|
|
150
|
-
"parameters": [
|
|
151
|
-
{
|
|
152
|
-
"name": "strings",
|
|
153
|
-
"docs": "The strings to append to the end of the string.",
|
|
154
|
-
"type": "string[]"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"returns": "string",
|
|
158
|
-
"tags": [
|
|
159
|
-
{
|
|
160
|
-
"name": "param",
|
|
161
|
-
"text": "strings The strings to append to the end of the string."
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"docs": "Returns a string that contains the concatenation of two or more strings.",
|
|
165
|
-
"complexTypes": [],
|
|
166
|
-
"slug": "concat"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "indexOf",
|
|
170
|
-
"signature": "(searchString: string, position?: number | undefined) => number",
|
|
171
|
-
"parameters": [
|
|
172
|
-
{
|
|
173
|
-
"name": "searchString",
|
|
174
|
-
"docs": "The substring to search for in the string",
|
|
175
|
-
"type": "string"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"name": "position",
|
|
179
|
-
"docs": "The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",
|
|
180
|
-
"type": "number | undefined"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"returns": "number",
|
|
184
|
-
"tags": [
|
|
185
|
-
{
|
|
186
|
-
"name": "param",
|
|
187
|
-
"text": "searchString The substring to search for in the string"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "param",
|
|
191
|
-
"text": "position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string."
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"docs": "Returns the position of the first occurrence of a substring.",
|
|
195
|
-
"complexTypes": [],
|
|
196
|
-
"slug": "indexof"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "lastIndexOf",
|
|
200
|
-
"signature": "(searchString: string, position?: number | undefined) => number",
|
|
201
|
-
"parameters": [
|
|
202
|
-
{
|
|
203
|
-
"name": "searchString",
|
|
204
|
-
"docs": "The substring to search for.",
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "position",
|
|
209
|
-
"docs": "The index at which to begin searching. If omitted, the search begins at the end of the string.",
|
|
210
|
-
"type": "number | undefined"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"returns": "number",
|
|
214
|
-
"tags": [
|
|
215
|
-
{
|
|
216
|
-
"name": "param",
|
|
217
|
-
"text": "searchString The substring to search for."
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"name": "param",
|
|
221
|
-
"text": "position The index at which to begin searching. If omitted, the search begins at the end of the string."
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"docs": "Returns the last occurrence of a substring in the string.",
|
|
225
|
-
"complexTypes": [],
|
|
226
|
-
"slug": "lastindexof"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "localeCompare",
|
|
230
|
-
"signature": "(that: string) => number",
|
|
231
|
-
"parameters": [
|
|
232
|
-
{
|
|
233
|
-
"name": "that",
|
|
234
|
-
"docs": "String to compare to target string",
|
|
235
|
-
"type": "string"
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"returns": "number",
|
|
239
|
-
"tags": [
|
|
240
|
-
{
|
|
241
|
-
"name": "param",
|
|
242
|
-
"text": "that String to compare to target string"
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"docs": "Determines whether two strings are equivalent in the current locale.",
|
|
246
|
-
"complexTypes": [],
|
|
247
|
-
"slug": "localecompare"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": "match",
|
|
251
|
-
"signature": "(regexp: string | RegExp) => RegExpMatchArray | null",
|
|
252
|
-
"parameters": [
|
|
253
|
-
{
|
|
254
|
-
"name": "regexp",
|
|
255
|
-
"docs": "A variable name or string literal containing the regular expression pattern and flags.",
|
|
256
|
-
"type": "string | RegExp"
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
"returns": "RegExpMatchArray | null",
|
|
260
|
-
"tags": [
|
|
261
|
-
{
|
|
262
|
-
"name": "param",
|
|
263
|
-
"text": "regexp A variable name or string literal containing the regular expression pattern and flags."
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"docs": "Matches a string with a regular expression, and returns an array containing the results of that search.",
|
|
267
|
-
"complexTypes": [
|
|
268
|
-
"RegExpMatchArray",
|
|
269
|
-
"RegExp"
|
|
270
|
-
],
|
|
271
|
-
"slug": "match"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "replace",
|
|
275
|
-
"signature": "(searchValue: string | RegExp, replaceValue: string) => string",
|
|
276
|
-
"parameters": [
|
|
277
|
-
{
|
|
278
|
-
"name": "searchValue",
|
|
279
|
-
"docs": "A string to search for.",
|
|
280
|
-
"type": "string | RegExp"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"name": "replaceValue",
|
|
284
|
-
"docs": "A string containing the text to replace for every successful match of searchValue in this string.",
|
|
285
|
-
"type": "string"
|
|
286
|
-
}
|
|
287
|
-
],
|
|
288
|
-
"returns": "string",
|
|
289
|
-
"tags": [
|
|
290
|
-
{
|
|
291
|
-
"name": "param",
|
|
292
|
-
"text": "searchValue A string to search for."
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "param",
|
|
296
|
-
"text": "replaceValue A string containing the text to replace for every successful match of searchValue in this string."
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"docs": "Replaces text in a string, using a regular expression or search string.",
|
|
300
|
-
"complexTypes": [
|
|
301
|
-
"RegExp"
|
|
302
|
-
],
|
|
303
|
-
"slug": "replace"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "replace",
|
|
307
|
-
"signature": "(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string) => string",
|
|
308
|
-
"parameters": [
|
|
309
|
-
{
|
|
310
|
-
"name": "searchValue",
|
|
311
|
-
"docs": "A string to search for.",
|
|
312
|
-
"type": "string | RegExp"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "replacer",
|
|
316
|
-
"docs": "A function that returns the replacement text.",
|
|
317
|
-
"type": "(substring: string, ...args: any[]) => string"
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
"returns": "string",
|
|
321
|
-
"tags": [
|
|
322
|
-
{
|
|
323
|
-
"name": "param",
|
|
324
|
-
"text": "searchValue A string to search for."
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "param",
|
|
328
|
-
"text": "replacer A function that returns the replacement text."
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"docs": "Replaces text in a string, using a regular expression or search string.",
|
|
332
|
-
"complexTypes": [
|
|
333
|
-
"RegExp"
|
|
334
|
-
],
|
|
335
|
-
"slug": "replace"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"name": "search",
|
|
339
|
-
"signature": "(regexp: string | RegExp) => number",
|
|
340
|
-
"parameters": [
|
|
341
|
-
{
|
|
342
|
-
"name": "regexp",
|
|
343
|
-
"docs": "The regular expression pattern and applicable flags.",
|
|
344
|
-
"type": "string | RegExp"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"returns": "number",
|
|
348
|
-
"tags": [
|
|
349
|
-
{
|
|
350
|
-
"name": "param",
|
|
351
|
-
"text": "regexp The regular expression pattern and applicable flags."
|
|
352
|
-
}
|
|
353
|
-
],
|
|
354
|
-
"docs": "Finds the first substring match in a regular expression search.",
|
|
355
|
-
"complexTypes": [
|
|
356
|
-
"RegExp"
|
|
357
|
-
],
|
|
358
|
-
"slug": "search"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"name": "slice",
|
|
362
|
-
"signature": "(start?: number | undefined, end?: number | undefined) => string",
|
|
363
|
-
"parameters": [
|
|
364
|
-
{
|
|
365
|
-
"name": "start",
|
|
366
|
-
"docs": "The index to the beginning of the specified portion of stringObj.",
|
|
367
|
-
"type": "number | undefined"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "end",
|
|
371
|
-
"docs": "The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf this value is not specified, the substring continues to the end of stringObj.",
|
|
372
|
-
"type": "number | undefined"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
"returns": "string",
|
|
376
|
-
"tags": [
|
|
377
|
-
{
|
|
378
|
-
"name": "param",
|
|
379
|
-
"text": "start The index to the beginning of the specified portion of stringObj."
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"name": "param",
|
|
383
|
-
"text": "end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf this value is not specified, the substring continues to the end of stringObj."
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
"docs": "Returns a section of a string.",
|
|
387
|
-
"complexTypes": [],
|
|
388
|
-
"slug": "slice"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"name": "split",
|
|
392
|
-
"signature": "(separator: string | RegExp, limit?: number | undefined) => string[]",
|
|
393
|
-
"parameters": [
|
|
394
|
-
{
|
|
395
|
-
"name": "separator",
|
|
396
|
-
"docs": "A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.",
|
|
397
|
-
"type": "string | RegExp"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"name": "limit",
|
|
401
|
-
"docs": "A value used to limit the number of elements returned in the array.",
|
|
402
|
-
"type": "number | undefined"
|
|
403
|
-
}
|
|
404
|
-
],
|
|
405
|
-
"returns": "string[]",
|
|
406
|
-
"tags": [
|
|
407
|
-
{
|
|
408
|
-
"name": "param",
|
|
409
|
-
"text": "separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned."
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"name": "param",
|
|
413
|
-
"text": "limit A value used to limit the number of elements returned in the array."
|
|
414
|
-
}
|
|
415
|
-
],
|
|
416
|
-
"docs": "Split a string into substrings using the specified separator and return them as an array.",
|
|
417
|
-
"complexTypes": [
|
|
418
|
-
"RegExp"
|
|
419
|
-
],
|
|
420
|
-
"slug": "split"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"name": "substring",
|
|
424
|
-
"signature": "(start: number, end?: number | undefined) => string",
|
|
425
|
-
"parameters": [
|
|
426
|
-
{
|
|
427
|
-
"name": "start",
|
|
428
|
-
"docs": "The zero-based index number indicating the beginning of the substring.",
|
|
429
|
-
"type": "number"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"name": "end",
|
|
433
|
-
"docs": "Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf end is omitted, the characters from start through the end of the original string are returned.",
|
|
434
|
-
"type": "number | undefined"
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"returns": "string",
|
|
438
|
-
"tags": [
|
|
439
|
-
{
|
|
440
|
-
"name": "param",
|
|
441
|
-
"text": "start The zero-based index number indicating the beginning of the substring."
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"name": "param",
|
|
445
|
-
"text": "end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf end is omitted, the characters from start through the end of the original string are returned."
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
"docs": "Returns the substring at the specified location within a String object.",
|
|
449
|
-
"complexTypes": [],
|
|
450
|
-
"slug": "substring"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"name": "toLowerCase",
|
|
454
|
-
"signature": "() => string",
|
|
455
|
-
"parameters": [],
|
|
456
|
-
"returns": "string",
|
|
457
|
-
"tags": [],
|
|
458
|
-
"docs": "Converts all the alphabetic characters in a string to lowercase.",
|
|
459
|
-
"complexTypes": [],
|
|
460
|
-
"slug": "tolowercase"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"name": "toLocaleLowerCase",
|
|
464
|
-
"signature": "(locales?: string | string[] | undefined) => string",
|
|
465
|
-
"parameters": [
|
|
466
|
-
{
|
|
467
|
-
"name": "locales",
|
|
468
|
-
"docs": "",
|
|
469
|
-
"type": "string | string[] | undefined"
|
|
470
|
-
}
|
|
471
|
-
],
|
|
472
|
-
"returns": "string",
|
|
473
|
-
"tags": [],
|
|
474
|
-
"docs": "Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",
|
|
475
|
-
"complexTypes": [],
|
|
476
|
-
"slug": "tolocalelowercase"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"name": "toUpperCase",
|
|
480
|
-
"signature": "() => string",
|
|
481
|
-
"parameters": [],
|
|
482
|
-
"returns": "string",
|
|
483
|
-
"tags": [],
|
|
484
|
-
"docs": "Converts all the alphabetic characters in a string to uppercase.",
|
|
485
|
-
"complexTypes": [],
|
|
486
|
-
"slug": "touppercase"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"name": "toLocaleUpperCase",
|
|
490
|
-
"signature": "(locales?: string | string[] | undefined) => string",
|
|
491
|
-
"parameters": [
|
|
492
|
-
{
|
|
493
|
-
"name": "locales",
|
|
494
|
-
"docs": "",
|
|
495
|
-
"type": "string | string[] | undefined"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"returns": "string",
|
|
499
|
-
"tags": [],
|
|
500
|
-
"docs": "Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",
|
|
501
|
-
"complexTypes": [],
|
|
502
|
-
"slug": "tolocaleuppercase"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"name": "trim",
|
|
506
|
-
"signature": "() => string",
|
|
507
|
-
"parameters": [],
|
|
508
|
-
"returns": "string",
|
|
509
|
-
"tags": [],
|
|
510
|
-
"docs": "Removes the leading and trailing white space and line terminator characters from a string.",
|
|
511
|
-
"complexTypes": [],
|
|
512
|
-
"slug": "trim"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"name": "substr",
|
|
516
|
-
"signature": "(from: number, length?: number | undefined) => string",
|
|
517
|
-
"parameters": [
|
|
518
|
-
{
|
|
519
|
-
"name": "from",
|
|
520
|
-
"docs": "The starting position of the desired substring. The index of the first character in the string is zero.",
|
|
521
|
-
"type": "number"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"name": "length",
|
|
525
|
-
"docs": "The number of characters to include in the returned substring.",
|
|
526
|
-
"type": "number | undefined"
|
|
527
|
-
}
|
|
528
|
-
],
|
|
529
|
-
"returns": "string",
|
|
530
|
-
"tags": [
|
|
531
|
-
{
|
|
532
|
-
"name": "param",
|
|
533
|
-
"text": "from The starting position of the desired substring. The index of the first character in the string is zero."
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"name": "param",
|
|
537
|
-
"text": "length The number of characters to include in the returned substring."
|
|
538
|
-
}
|
|
539
|
-
],
|
|
540
|
-
"docs": "Gets a substring beginning at the specified location and having the specified length.",
|
|
541
|
-
"complexTypes": [],
|
|
542
|
-
"slug": "substr"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "valueOf",
|
|
546
|
-
"signature": "() => string",
|
|
547
|
-
"parameters": [],
|
|
548
|
-
"returns": "string",
|
|
549
|
-
"tags": [],
|
|
550
|
-
"docs": "Returns the primitive value of the specified object.",
|
|
551
|
-
"complexTypes": [],
|
|
552
|
-
"slug": "valueof"
|
|
553
|
-
}
|
|
554
|
-
],
|
|
555
|
-
"properties": [
|
|
556
|
-
{
|
|
557
|
-
"name": "length",
|
|
558
|
-
"tags": [],
|
|
559
|
-
"docs": "Returns the length of a String object.",
|
|
560
|
-
"complexTypes": [],
|
|
561
|
-
"type": "number"
|
|
562
|
-
}
|
|
563
|
-
]
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "RegExpMatchArray",
|
|
567
|
-
"slug": "regexpmatcharray",
|
|
72
|
+
"name": "R360UserTokenIdentity",
|
|
73
|
+
"slug": "r360usertokenidentity",
|
|
568
74
|
"docs": "",
|
|
569
75
|
"tags": [],
|
|
570
76
|
"methods": [],
|
|
571
77
|
"properties": [
|
|
572
78
|
{
|
|
573
|
-
"name": "
|
|
574
|
-
"tags": [],
|
|
575
|
-
"docs": "",
|
|
576
|
-
"complexTypes": [],
|
|
577
|
-
"type": "number | undefined"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"name": "input",
|
|
581
|
-
"tags": [],
|
|
582
|
-
"docs": "",
|
|
583
|
-
"complexTypes": [],
|
|
584
|
-
"type": "string | undefined"
|
|
585
|
-
}
|
|
586
|
-
]
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"name": "RegExp",
|
|
590
|
-
"slug": "regexp",
|
|
591
|
-
"docs": "",
|
|
592
|
-
"tags": [],
|
|
593
|
-
"methods": [
|
|
594
|
-
{
|
|
595
|
-
"name": "exec",
|
|
596
|
-
"signature": "(string: string) => RegExpExecArray | null",
|
|
597
|
-
"parameters": [
|
|
598
|
-
{
|
|
599
|
-
"name": "string",
|
|
600
|
-
"docs": "The String object or string literal on which to perform the search.",
|
|
601
|
-
"type": "string"
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
"returns": "RegExpExecArray | null",
|
|
605
|
-
"tags": [
|
|
606
|
-
{
|
|
607
|
-
"name": "param",
|
|
608
|
-
"text": "string The String object or string literal on which to perform the search."
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
"docs": "Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.",
|
|
612
|
-
"complexTypes": [
|
|
613
|
-
"RegExpExecArray"
|
|
614
|
-
],
|
|
615
|
-
"slug": "exec"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "test",
|
|
619
|
-
"signature": "(string: string) => boolean",
|
|
620
|
-
"parameters": [
|
|
621
|
-
{
|
|
622
|
-
"name": "string",
|
|
623
|
-
"docs": "String on which to perform the search.",
|
|
624
|
-
"type": "string"
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
"returns": "boolean",
|
|
628
|
-
"tags": [
|
|
629
|
-
{
|
|
630
|
-
"name": "param",
|
|
631
|
-
"text": "string String on which to perform the search."
|
|
632
|
-
}
|
|
633
|
-
],
|
|
634
|
-
"docs": "Returns a Boolean value that indicates whether or not a pattern exists in a searched string.",
|
|
635
|
-
"complexTypes": [],
|
|
636
|
-
"slug": "test"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"name": "compile",
|
|
640
|
-
"signature": "() => this",
|
|
641
|
-
"parameters": [],
|
|
642
|
-
"returns": "this",
|
|
79
|
+
"name": "userId",
|
|
643
80
|
"tags": [],
|
|
644
81
|
"docs": "",
|
|
645
82
|
"complexTypes": [],
|
|
646
|
-
"slug": "compile"
|
|
647
|
-
}
|
|
648
|
-
],
|
|
649
|
-
"properties": [
|
|
650
|
-
{
|
|
651
|
-
"name": "source",
|
|
652
|
-
"tags": [],
|
|
653
|
-
"docs": "Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.",
|
|
654
|
-
"complexTypes": [],
|
|
655
83
|
"type": "string"
|
|
656
84
|
},
|
|
657
85
|
{
|
|
658
|
-
"name": "
|
|
659
|
-
"tags": [],
|
|
660
|
-
"docs": "Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.",
|
|
661
|
-
"complexTypes": [],
|
|
662
|
-
"type": "boolean"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
"name": "ignoreCase",
|
|
666
|
-
"tags": [],
|
|
667
|
-
"docs": "Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.",
|
|
668
|
-
"complexTypes": [],
|
|
669
|
-
"type": "boolean"
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"name": "multiline",
|
|
673
|
-
"tags": [],
|
|
674
|
-
"docs": "Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.",
|
|
675
|
-
"complexTypes": [],
|
|
676
|
-
"type": "boolean"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"name": "lastIndex",
|
|
86
|
+
"name": "userToken",
|
|
680
87
|
"tags": [],
|
|
681
88
|
"docs": "",
|
|
682
89
|
"complexTypes": [],
|
|
683
|
-
"type": "
|
|
90
|
+
"type": "string"
|
|
684
91
|
}
|
|
685
92
|
]
|
|
686
|
-
}
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"enums": [],
|
|
96
|
+
"typeAliases": [
|
|
687
97
|
{
|
|
688
|
-
"name": "
|
|
689
|
-
"slug": "
|
|
98
|
+
"name": "Record360Identity",
|
|
99
|
+
"slug": "record360identity",
|
|
690
100
|
"docs": "",
|
|
691
|
-
"
|
|
692
|
-
"methods": [],
|
|
693
|
-
"properties": [
|
|
101
|
+
"types": [
|
|
694
102
|
{
|
|
695
|
-
"
|
|
696
|
-
"
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
"type": "number"
|
|
103
|
+
"text": "R360PasswordIdentity",
|
|
104
|
+
"complexTypes": [
|
|
105
|
+
"R360PasswordIdentity"
|
|
106
|
+
]
|
|
700
107
|
},
|
|
701
108
|
{
|
|
702
|
-
"
|
|
703
|
-
"
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
"type": "string"
|
|
109
|
+
"text": "R360UserTokenIdentity",
|
|
110
|
+
"complexTypes": [
|
|
111
|
+
"R360UserTokenIdentity"
|
|
112
|
+
]
|
|
707
113
|
}
|
|
708
114
|
]
|
|
709
115
|
}
|
|
710
116
|
],
|
|
711
|
-
"enums": [],
|
|
712
|
-
"typeAliases": [],
|
|
713
117
|
"pluginConfigs": []
|
|
714
118
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare type Record360Identity = R360PasswordIdentity | R360UserTokenIdentity;
|
|
2
|
+
export interface R360PasswordIdentity {
|
|
2
3
|
username: string;
|
|
3
4
|
password: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
export interface R360UserTokenIdentity {
|
|
7
|
+
userId: string;
|
|
8
|
+
userToken: string;
|
|
6
9
|
}
|
|
7
10
|
export interface CapacitorRecord360SDKPlugin {
|
|
8
|
-
launchRecord360(identity
|
|
11
|
+
launchRecord360(identity?: Record360Identity): Promise<void>;
|
|
9
12
|
launchReferenceCapture(options: {
|
|
10
13
|
referenceNumber: string;
|
|
11
|
-
workOrderId
|
|
12
|
-
workOrderLabel
|
|
13
|
-
identity
|
|
14
|
+
workOrderId?: number;
|
|
15
|
+
workOrderLabel?: string;
|
|
16
|
+
identity?: Record360Identity;
|
|
14
17
|
}): Promise<void>;
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export type Record360Identity = R360PasswordIdentity | R360UserTokenIdentity\n\nexport interface R360PasswordIdentity {\n username: string,\n password: string\n}\n\nexport interface R360UserTokenIdentity {\n userId: string,\n userToken: string\n}\n\nexport interface CapacitorRecord360SDKPlugin {\n launchRecord360(identity?: Record360Identity): Promise<void>\n\n launchReferenceCapture(options: {\n referenceNumber: string,\n workOrderId?: number,\n workOrderLabel?: string,\n identity?: Record360Identity\n }): Promise<void>\n}\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
import type { CapacitorRecord360SDKPlugin, Record360Identity } from './definitions';
|
|
3
3
|
export declare class CapacitorRecord360SDKWeb extends WebPlugin implements CapacitorRecord360SDKPlugin {
|
|
4
|
-
launchRecord360(_
|
|
4
|
+
launchRecord360(_?: Record360Identity): Promise<void>;
|
|
5
5
|
launchReferenceCapture(_: {
|
|
6
6
|
referenceNumber: string;
|
|
7
|
-
workOrderId
|
|
8
|
-
workOrderLabel
|
|
9
|
-
identity
|
|
7
|
+
workOrderId?: number;
|
|
8
|
+
workOrderLabel?: string;
|
|
9
|
+
identity?: Record360Identity;
|
|
10
10
|
}): Promise<void>;
|
|
11
11
|
}
|
package/dist/esm/web.js
CHANGED
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,wBAAyB,SAAQ,SAAS;IACrD,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,wBAAyB,SAAQ,SAAS;IACrD,eAAe,CAAC,CAAqB;QACnC,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,sBAAsB,CAAC,CAA4G;QAC/H,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC5C,CAAC;CAEF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { CapacitorRecord360SDKPlugin, Record360Identity } from './definitions';\n\nexport class CapacitorRecord360SDKWeb extends WebPlugin implements CapacitorRecord360SDKPlugin {\n launchRecord360(_?: Record360Identity): Promise<void> {\n throw new Error(\"Not available on web.\");\n }\n\n launchReferenceCapture(_: { referenceNumber: string; workOrderId?: number; workOrderLabel?: string; identity?: Record360Identity; }): Promise<void> {\n throw new Error(\"Not available on web\");\n }\n \n}"]}
|
package/dist/plugin.cjs.js
CHANGED
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorRecord360SDK = registerPlugin('CapacitorRecord360SDK', {\n web: () => import('./web').then(m => new m.CapacitorRecord360SDKWeb()),\n});\nexport * from './definitions';\nexport { CapacitorRecord360SDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorRecord360SDKWeb extends WebPlugin {\n launchRecord360(_) {\n throw new Error(\"Not available on web.\");\n }\n launchReferenceCapture(_) {\n throw new Error(\"Not available on web
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorRecord360SDK = registerPlugin('CapacitorRecord360SDK', {\n web: () => import('./web').then(m => new m.CapacitorRecord360SDKWeb()),\n});\nexport * from './definitions';\nexport { CapacitorRecord360SDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorRecord360SDKWeb extends WebPlugin {\n launchRecord360(_) {\n throw new Error(\"Not available on web.\");\n }\n launchReferenceCapture(_) {\n throw new Error(\"Not available on web\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;AACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;AAC1E,CAAC;;ACFM,MAAM,wBAAwB,SAASC,cAAS,CAAC;AACxD,IAAI,eAAe,CAAC,CAAC,EAAE;AACvB,QAAQ,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC;AAChD;AACA,IAAI,sBAAsB,CAAC,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC;AAC/C;AACA;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorRecord360SDK = registerPlugin('CapacitorRecord360SDK', {\n web: () => import('./web').then(m => new m.CapacitorRecord360SDKWeb()),\n});\nexport * from './definitions';\nexport { CapacitorRecord360SDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorRecord360SDKWeb extends WebPlugin {\n launchRecord360(_) {\n throw new Error(\"Not available on web.\");\n }\n launchReferenceCapture(_) {\n throw new Error(\"Not available on web
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorRecord360SDK = registerPlugin('CapacitorRecord360SDK', {\n web: () => import('./web').then(m => new m.CapacitorRecord360SDKWeb()),\n});\nexport * from './definitions';\nexport { CapacitorRecord360SDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorRecord360SDKWeb extends WebPlugin {\n launchRecord360(_) {\n throw new Error(\"Not available on web.\");\n }\n launchReferenceCapture(_) {\n throw new Error(\"Not available on web\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC1E,CAAC;;ICFM,MAAM,wBAAwB,SAASC,cAAS,CAAC;IACxD,IAAI,eAAe,CAAC,CAAC,EAAE;IACvB,QAAQ,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC;IAChD;IACA,IAAI,sBAAsB,CAAC,CAAC,EAAE;IAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC;IAC/C;IACA;;;;;;;;;;;;;;;"}
|
|
@@ -17,6 +17,22 @@ public class CapacitorRecord360SDKPlugin: CAPPlugin, CAPBridgedPlugin, Record360
|
|
|
17
17
|
public override init() {
|
|
18
18
|
super.init()
|
|
19
19
|
self.record360 = Record360(delegate: self);
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
private func applySettings() {
|
|
24
|
+
self.record360ViewController?.applyDefaultSettings([
|
|
25
|
+
Record360Setting(switchSetting: SETTING_NOTATIONS_ON_IMAGES, canDisplay: true, value: false),
|
|
26
|
+
Record360Setting(switchSetting: SETTING_ADD_TIMESTAMP_TO_MEDIA, canDisplay: true, value: true),
|
|
27
|
+
Record360Setting(switchSetting: SETTING_NATIVE_PHOTO_MODE, canDisplay: true, value: false),
|
|
28
|
+
Record360Setting(optionSetting: SETTING_RESOLUTION, canDisplay: true, value: RESOLUTION_HIGH),
|
|
29
|
+
Record360Setting(optionSetting: SETTING_UPLOAD_MODE, canDisplay: true, value: UPLOAD_MODE_ONLINE),
|
|
30
|
+
Record360Setting(setting: SETTING_SEND_SUPPORT_LOG),
|
|
31
|
+
Record360Setting(setting: SETTING_LOGOUT),
|
|
32
|
+
Record360Setting(setting: SETTING_LINKS, label: "Terms of Service", link: "https://www.record360.com/terms"),
|
|
33
|
+
Record360Setting(setting: SETTING_LINKS, label: "Privacy Policy", link: "https://www.record360.com/privacy"),
|
|
34
|
+
Record360Setting(setting: SETTING_VERSION)
|
|
35
|
+
])
|
|
20
36
|
}
|
|
21
37
|
|
|
22
38
|
@objc
|
|
@@ -77,6 +93,7 @@ public class CapacitorRecord360SDKPlugin: CAPPlugin, CAPBridgedPlugin, Record360
|
|
|
77
93
|
self.record360ViewController = Record360ViewController.loadLoginAndSend(to: self.record360!, displayOn: presentingVC, withLoginUsername: nil)
|
|
78
94
|
}
|
|
79
95
|
self.record360ViewController?.delegate = self
|
|
96
|
+
self.applySettings()
|
|
80
97
|
}
|
|
81
98
|
}
|
|
82
99
|
|
|
@@ -85,6 +102,7 @@ public class CapacitorRecord360SDKPlugin: CAPPlugin, CAPBridgedPlugin, Record360
|
|
|
85
102
|
DispatchQueue.main.async {
|
|
86
103
|
self.record360ViewController = Record360ViewController.load(withUserName: username, andPassword: password, sendTo: self.record360!, displayOn: presentingVC)
|
|
87
104
|
self.record360ViewController?.delegate = self
|
|
105
|
+
self.applySettings()
|
|
88
106
|
}
|
|
89
107
|
}
|
|
90
108
|
|
|
@@ -93,6 +111,7 @@ public class CapacitorRecord360SDKPlugin: CAPPlugin, CAPBridgedPlugin, Record360
|
|
|
93
111
|
DispatchQueue.main.async {
|
|
94
112
|
self.record360ViewController = Record360ViewController.load(withUserToken: userToken, andUserId: userID, sendTo: self.record360!, displayOn: presentingVC)
|
|
95
113
|
self.record360ViewController?.delegate = self
|
|
114
|
+
self.applySettings()
|
|
96
115
|
}
|
|
97
116
|
}
|
|
98
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-record360sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Capacitor wrapper for Record360SDK",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,10 +46,11 @@
|
|
|
46
46
|
"prepublishOnly": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@capacitor/android": "^
|
|
50
|
-
"@capacitor/
|
|
49
|
+
"@capacitor/android": "^7.0.0",
|
|
50
|
+
"@capacitor/cli": "^7.0.0",
|
|
51
|
+
"@capacitor/core": "^7.0.0",
|
|
51
52
|
"@capacitor/docgen": "^0.2.2",
|
|
52
|
-
"@capacitor/ios": "^
|
|
53
|
+
"@capacitor/ios": "^7.0.0",
|
|
53
54
|
"@ionic/eslint-config": "^0.4.0",
|
|
54
55
|
"@ionic/prettier-config": "^4.0.0",
|
|
55
56
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
@@ -77,4 +78,4 @@
|
|
|
77
78
|
"src": "android"
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
}
|
|
81
|
+
}
|