backend-test-tools 1.0.5 → 1.0.7

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.
Files changed (2) hide show
  1. package/README.md +0 -34
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -10,9 +10,7 @@ Tools to be used by the Node backend services for testing purpose.
10
10
  - [Access token](#access-token)
11
11
  - [Social provider](#social-provider)
12
12
  - [Auth0 ID](#auth0-id)
13
- - [Chat ID](#chat-id)
14
13
  - [Locale](#locale)
15
- - [RegId](#regid)
16
14
  - [RSA Key Pair](#rsa-key-pair)
17
15
  - [User public key](#user-public-key)
18
16
  - [User encrypted private key](#user-encrypted-private-key)
@@ -20,9 +18,6 @@ Tools to be used by the Node backend services for testing purpose.
20
18
  - [Factory](#factory)
21
19
  - [Build](#build)
22
20
  - [Models](#models)
23
- - [Connection](#connection)
24
- - [Identity](#identity)
25
- - [Organization](#organization)
26
21
  - [User](#user)
27
22
  - [Utilities](#utilities)
28
23
  - [TLS](#tls)
@@ -71,15 +66,6 @@ const auth0Id = generateAuth0UserId(full)
71
66
 
72
67
  - **full** (Boolean): prefix the provider name to the ID to create a full auth0 ID also known as externalID. (default: false)
73
68
 
74
- ### Chat ID
75
-
76
- Get a random BlackBerry Spark chat ID
77
-
78
- ```javascript
79
- import {generateChatId} from 'backend-test-tools'
80
- const chatId = generateChatId()
81
- ```
82
-
83
69
  ### Locale
84
70
 
85
71
  Get a random locale from the ones available.
@@ -89,15 +75,6 @@ import {generateLocale} from 'backend-test-tools'
89
75
  const locale = generateLocale()
90
76
  ```
91
77
 
92
- ### RegId
93
-
94
- Get a random Blackberry Spark regId.
95
-
96
- ```javascript
97
- import {generateRegId} from 'backend-test-tools'
98
- const regId = generateRegId()
99
- ```
100
-
101
78
  ### RSA Key Pair
102
79
 
103
80
  Get RSA key pair and save to certs folder.
@@ -182,13 +159,6 @@ import {factory} from 'backend-test-tools'
182
159
  const model = factory.build('identity')
183
160
  ```
184
161
 
185
- #### Organization
186
-
187
- ```javascript
188
- import {factory} from 'backend-test-tools'
189
- const model = factory.build('organization')
190
- ```
191
-
192
162
  #### User
193
163
 
194
164
  ```javascript
@@ -196,8 +166,6 @@ import {factory} from 'backend-test-tools'
196
166
  const buildOptions = {
197
167
  firstName: John,
198
168
  lastName: Doe,
199
- organizationId: '51f0ac7a-4b79-485f-9a0f-a0eb7a5d8aa8',
200
- admin: false,
201
169
  member: false,
202
170
  moreRandom: false
203
171
  }
@@ -206,8 +174,6 @@ const model = factory.build('user', undefined, buildOptions)
206
174
 
207
175
  - **firstName**: First name of the user, will also define all the variations of name.
208
176
  - **lastName**: Last name of the user, will also define all the variations of name.
209
- - **organizationId**: Id of the organization to which the user is related. Will define the date at which he joined.
210
- - **admin**: User is admin of the organization.
211
177
  - **member**: User is a member of the organization.
212
178
  - **moreRandom**: Adds randomness to unique fields to avoid collisions when building a large number of objects.
213
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-test-tools",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Node test tools",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -68,7 +68,7 @@
68
68
  "*.ts": "eslint"
69
69
  },
70
70
  "peerDependencies": {
71
- "node-server-engine": "^1.1.5"
71
+ "node-server-engine": "^1.2.6"
72
72
  },
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.26.0",