late-sdk 0.0.631 → 0.0.632
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.
- checksums.yaml +4 -4
- data/docs/BulkCreateContactsRequest.md +2 -2
- data/docs/ContactsApi.md +2 -2
- data/lib/zernio-sdk/api/contacts_api.rb +2 -2
- data/lib/zernio-sdk/models/bulk_create_contacts_request.rb +2 -34
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +5 -5
- data/spec/api/contacts_api_spec.rb +1 -1
- data/zernio-sdk-0.0.632.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.631.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e4989f6f565e38c5826d06bcc2f668238a6c2ce1cdcb3fe74a35f7b46a30927
|
|
4
|
+
data.tar.gz: 472eda0eaab9e6106f9b499ad0daf32539b2b8034ccb4c6f3c7fd79508b86461
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fb0359a7e6bb44e7471d53507f31331eaae73ea1c41c8f488d58f8e298de8be6fe3943a2bafc1ff69897c0dc15a22b3cc296f86ba50f556a8377229c5694cc8
|
|
7
|
+
data.tar.gz: 36e3df320c8ec022e55ea73aeb05ece15595b966700c3a3a68856236b1f8408379625e1a523430361981c3557665911dac7516fa3d54ce5484f14ff1474008ca
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **profile_id** | **String** | | |
|
|
8
|
-
| **account_id** | **String** |
|
|
9
|
-
| **platform** | **String** |
|
|
8
|
+
| **account_id** | **String** | Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels. | [optional] |
|
|
9
|
+
| **platform** | **String** | Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s. | [optional] |
|
|
10
10
|
| **contacts** | [**Array<BulkCreateContactsRequestContactsInner>**](BulkCreateContactsRequestContactsInner.md) | | |
|
|
11
11
|
|
|
12
12
|
## Example
|
data/docs/ContactsApi.md
CHANGED
|
@@ -19,7 +19,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
19
19
|
|
|
20
20
|
Bulk create contacts
|
|
21
21
|
|
|
22
|
-
Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
22
|
+
Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
23
23
|
|
|
24
24
|
### Examples
|
|
25
25
|
|
|
@@ -33,7 +33,7 @@ Zernio.configure do |config|
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
api_instance = Zernio::ContactsApi.new
|
|
36
|
-
bulk_create_contacts_request = Zernio::BulkCreateContactsRequest.new({profile_id: 'profile_id_example',
|
|
36
|
+
bulk_create_contacts_request = Zernio::BulkCreateContactsRequest.new({profile_id: 'profile_id_example', contacts: [Zernio::BulkCreateContactsRequestContactsInner.new({name: 'name_example', platform_identifier: 'platform_identifier_example'})]}) # BulkCreateContactsRequest |
|
|
37
37
|
|
|
38
38
|
begin
|
|
39
39
|
# Bulk create contacts
|
|
@@ -20,7 +20,7 @@ module Zernio
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Bulk create contacts
|
|
23
|
-
# Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
23
|
+
# Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
24
24
|
# @param bulk_create_contacts_request [BulkCreateContactsRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [BulkCreateContacts200Response]
|
|
@@ -30,7 +30,7 @@ module Zernio
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Bulk create contacts
|
|
33
|
-
# Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
33
|
+
# Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
34
34
|
# @param bulk_create_contacts_request [BulkCreateContactsRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(BulkCreateContacts200Response, Integer, Hash)>] BulkCreateContacts200Response data, response status code and response headers
|
|
@@ -17,8 +17,10 @@ module Zernio
|
|
|
17
17
|
class BulkCreateContactsRequest < ApiModelBase
|
|
18
18
|
attr_accessor :profile_id
|
|
19
19
|
|
|
20
|
+
# Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels.
|
|
20
21
|
attr_accessor :account_id
|
|
21
22
|
|
|
23
|
+
# Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s.
|
|
22
24
|
attr_accessor :platform
|
|
23
25
|
|
|
24
26
|
attr_accessor :contacts
|
|
@@ -83,14 +85,10 @@ module Zernio
|
|
|
83
85
|
|
|
84
86
|
if attributes.key?(:'account_id')
|
|
85
87
|
self.account_id = attributes[:'account_id']
|
|
86
|
-
else
|
|
87
|
-
self.account_id = nil
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
if attributes.key?(:'platform')
|
|
91
91
|
self.platform = attributes[:'platform']
|
|
92
|
-
else
|
|
93
|
-
self.platform = nil
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
if attributes.key?(:'contacts')
|
|
@@ -111,14 +109,6 @@ module Zernio
|
|
|
111
109
|
invalid_properties.push('invalid value for "profile_id", profile_id cannot be nil.')
|
|
112
110
|
end
|
|
113
111
|
|
|
114
|
-
if @account_id.nil?
|
|
115
|
-
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if @platform.nil?
|
|
119
|
-
invalid_properties.push('invalid value for "platform", platform cannot be nil.')
|
|
120
|
-
end
|
|
121
|
-
|
|
122
112
|
if @contacts.nil?
|
|
123
113
|
invalid_properties.push('invalid value for "contacts", contacts cannot be nil.')
|
|
124
114
|
end
|
|
@@ -135,8 +125,6 @@ module Zernio
|
|
|
135
125
|
def valid?
|
|
136
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
127
|
return false if @profile_id.nil?
|
|
138
|
-
return false if @account_id.nil?
|
|
139
|
-
return false if @platform.nil?
|
|
140
128
|
return false if @contacts.nil?
|
|
141
129
|
return false if @contacts.length > 1000
|
|
142
130
|
true
|
|
@@ -152,26 +140,6 @@ module Zernio
|
|
|
152
140
|
@profile_id = profile_id
|
|
153
141
|
end
|
|
154
142
|
|
|
155
|
-
# Custom attribute writer method with validation
|
|
156
|
-
# @param [Object] account_id Value to be assigned
|
|
157
|
-
def account_id=(account_id)
|
|
158
|
-
if account_id.nil?
|
|
159
|
-
fail ArgumentError, 'account_id cannot be nil'
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
@account_id = account_id
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
# Custom attribute writer method with validation
|
|
166
|
-
# @param [Object] platform Value to be assigned
|
|
167
|
-
def platform=(platform)
|
|
168
|
-
if platform.nil?
|
|
169
|
-
fail ArgumentError, 'platform cannot be nil'
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
@platform = platform
|
|
173
|
-
end
|
|
174
|
-
|
|
175
143
|
# Custom attribute writer method with validation
|
|
176
144
|
# @param [Object] contacts Value to be assigned
|
|
177
145
|
def contacts=(contacts)
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -32897,7 +32897,7 @@ paths:
|
|
|
32897
32897
|
post:
|
|
32898
32898
|
operationId: bulkCreateContacts
|
|
32899
32899
|
summary: Bulk create contacts
|
|
32900
|
-
description: 'Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.'
|
|
32900
|
+
description: 'Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.'
|
|
32901
32901
|
tags: [Contacts]
|
|
32902
32902
|
requestBody:
|
|
32903
32903
|
required: true
|
|
@@ -32905,11 +32905,11 @@ paths:
|
|
|
32905
32905
|
application/json:
|
|
32906
32906
|
schema:
|
|
32907
32907
|
type: object
|
|
32908
|
-
required: [profileId,
|
|
32908
|
+
required: [profileId, contacts]
|
|
32909
32909
|
properties:
|
|
32910
32910
|
profileId: { type: string }
|
|
32911
|
-
accountId: { type: string }
|
|
32912
|
-
platform: { type: string }
|
|
32911
|
+
accountId: { type: string, description: 'Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels.' }
|
|
32912
|
+
platform: { type: string, description: 'Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s.' }
|
|
32913
32913
|
contacts:
|
|
32914
32914
|
type: array
|
|
32915
32915
|
maxItems: 1000
|
|
@@ -32936,7 +32936,7 @@ paths:
|
|
|
32936
32936
|
skipped: { type: integer }
|
|
32937
32937
|
errors: { type: array, items: { type: string }, description: 'Per-contact failures, e.g. an identifier that is not a valid phone number' }
|
|
32938
32938
|
total: { type: integer }
|
|
32939
|
-
'400': { description:
|
|
32939
|
+
'400': { description: 'Missing required field, or a row carries platformIdentifier/accountId with no top-level accountId to attach it to' }
|
|
32940
32940
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
32941
32941
|
|
|
32942
32942
|
/v1/contacts/{contactId}/fields/{slug}:
|
|
@@ -34,7 +34,7 @@ describe 'ContactsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for bulk_create_contacts
|
|
36
36
|
# Bulk create contacts
|
|
37
|
-
# Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
37
|
+
# Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
38
38
|
# @param bulk_create_contacts_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [BulkCreateContacts200Response]
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.632
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -4919,7 +4919,7 @@ files:
|
|
|
4919
4919
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4920
4920
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4921
4921
|
- spec/spec_helper.rb
|
|
4922
|
-
- zernio-sdk-0.0.
|
|
4922
|
+
- zernio-sdk-0.0.632.gem
|
|
4923
4923
|
- zernio-sdk.gemspec
|
|
4924
4924
|
homepage: https://openapi-generator.tech
|
|
4925
4925
|
licenses:
|
data/zernio-sdk-0.0.631.gem
DELETED
|
Binary file
|