@sweepbright/api-client 0.26.2 → 0.27.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 +13 -32
- package/dist/api-client.cjs.development.js +950 -82
- package/dist/api-client.cjs.development.js.map +1 -1
- package/dist/api-client.cjs.production.min.js +1 -1
- package/dist/api-client.cjs.production.min.js.map +1 -1
- package/dist/api-client.esm.js +950 -82
- package/dist/api-client.esm.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/resources/channels.d.ts +1 -1
- package/dist/resources/contacts.d.ts +3 -0
- package/package.json +3 -3
- package/dist/__tests__/auth.test.d.ts +0 -1
- package/dist/__tests__/channels.test.d.ts +0 -1
- package/dist/__tests__/estates.test.d.ts +0 -1
- package/dist/__tests__/leads.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -86,7 +86,6 @@ publication change was scheduled successfully
|
|
|
86
86
|
- **estateId** - required - the id of the estate who's publication is going to be updated
|
|
87
87
|
- **channelAccountId** - required - the id of the channel account of the publication
|
|
88
88
|
- **config** - required - a configuration object, specific for each channel account type, which information about the publication config [link](link missing)
|
|
89
|
-
<<<<<<< HEAD
|
|
90
89
|
|
|
91
90
|
### Estates - unpublishPublication
|
|
92
91
|
|
|
@@ -167,39 +166,21 @@ Returns a company. Takes a single `options` parameter and returns a promise with
|
|
|
167
166
|
|
|
168
167
|
- **companyId** - required - the id of the company to return
|
|
169
168
|
- **includes** - optional - a list of includes to return
|
|
170
|
-
=======
|
|
171
|
-
|
|
172
|
-
### Estates - unpublishPublication
|
|
173
|
-
|
|
174
|
-
Allows to remove an existing property publication, requires to be authorized
|
|
175
|
-
with a user token. Takes a single `options` parameter and returns an empty response if the
|
|
176
|
-
publication change was scheduled successfully
|
|
177
|
-
|
|
178
|
-
#### Options object
|
|
179
|
-
|
|
180
|
-
- **estateId** - required - the id of the estate who's publication is going to be updated
|
|
181
|
-
- **channelAccountId** - required - the id of the channel account of the publication
|
|
182
|
-
|
|
183
|
-
### Contacts - getOne
|
|
184
|
-
|
|
185
|
-
Takes a single `options` parameter and returns a promise with the contact data
|
|
186
|
-
|
|
187
|
-
#### Options object
|
|
188
|
-
|
|
189
|
-
- **contactId** - required - the id of the contact to return
|
|
190
|
-
|
|
191
|
-
### Contacts - getAll
|
|
192
|
-
|
|
193
|
-
Takes a single `options` parameter and returns a promise with a paginated list of contacts for a specific company
|
|
194
|
-
|
|
195
|
-
#### Options object
|
|
196
|
-
|
|
197
|
-
- **companyId** - required - the id of the company from which to get the contacts
|
|
198
|
-
- **page** - optional - when paginating the request, allows you specify the page you want to get
|
|
199
|
-
- **limit** - optional - when paginating the request, allows you specify the number of items per page (defaults to 10)
|
|
200
|
-
>>>>>>> 2c8f69d889eab75b1bb5afcdc3cca6b1d498fd4d
|
|
201
169
|
|
|
202
170
|
## Development
|
|
203
171
|
|
|
204
172
|
This repository was initialized using [TSDX](https://github.com/formium/tsdx).
|
|
205
173
|
Check their docs for information about the different commands available.
|
|
174
|
+
|
|
175
|
+
## Publication
|
|
176
|
+
|
|
177
|
+
Publication is configured in Github Actions. The flow is the following: "Version Tag -> Github Release".
|
|
178
|
+
|
|
179
|
+
In `master` branch:
|
|
180
|
+
- run `yarn version` and select a new version
|
|
181
|
+
- yarn will create a commit and a version tag
|
|
182
|
+
- push the changes together with tag
|
|
183
|
+
- go to [Releases / Tags](https://github.com/sweepbright/api-client-js/tags)
|
|
184
|
+
- find your new tag and click "Create Release From Tag" button
|
|
185
|
+
- save the release
|
|
186
|
+
- go to [Actions](https://github.com/sweepbright/api-client-js/actions) and make sure the NPM package is being published
|