Skip to content

Commit

Permalink
[Auto Generated] 1.3.5-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 11, 2023
1 parent d82e1db commit 9dedd68
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 52 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
# CHANGE LOG (1.3.5-beta.2) - v1.8.3-prerelease-v2
# CHANGE LOG (1.3.5-beta.1) - v1.8.4-prerelease-v1

## Platform Client



### Catalog



#### getProductBulkUploadHistory

- ##### What's New
- [Added] property `items[]` of schema `ProductBulkRequestList` in response with status code 200

- ##### What's Deprecated
- [Deleted] properties `items.cancelled`, `items.failed`, `items.stage`, `items.succeed`, `items.template`, `items.total`, `items.cancelledRecords`, `items.companyId`, `items.createdBy`, `items.createdOn`, `items.failedRecords`, `items.filePath`, `items.isActive`, `items.modifiedBy`, `items.modifiedOn`, `items.templateTag` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `ProductBulkRequest` in response with status code 200


# CHANGE LOG (1.3.4) - fp-v1.8.3

## Application Client

Expand Down
2 changes: 1 addition & 1 deletion FDKClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |s|
s.name = 'FDKClient'
s.version = '1.3.5-beta.2'
s.version = '1.3.5-beta.1'
s.summary = 'FDK Client SDK for Swift language'

s.description = 'FDK Client SDK for Swift language that can be used to make Apps or extensions.'
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/application/ApplicationAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ApplicationAPIClient {
var headers = [
(key: "Authorization", value: "Bearer " + "\(config.applicationId):\(config.applicationToken)".asBase64)
]
headers.append((key: "x-fp-sdk-version", value: "1.3.5-beta.2"))
headers.append((key: "x-fp-sdk-version", value: "1.3.5-beta.1"))
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class ProductBulkRequestList: Codable {


public var items: ProductBulkRequest?
public var items: [ProductBulkRequest]?

public var page: Page?

Expand All @@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {

}

public init(items: ProductBulkRequest? = nil, page: Page? = nil) {
public init(items: [ProductBulkRequest]? = nil, page: Page? = nil) {

self.items = items

Expand All @@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {


do {
items = try container.decode(ProductBulkRequest.self, forKey: .items)
items = try container.decode([ProductBulkRequest].self, forKey: .items)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
Expand Down Expand Up @@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class ProductBulkRequestList: Codable {


public var items: ProductBulkRequest?
public var items: [ProductBulkRequest]?

public var page: Page?

Expand All @@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {

}

public init(items: ProductBulkRequest? = nil, page: Page? = nil) {
public init(items: [ProductBulkRequest]? = nil, page: Page? = nil) {

self.items = items

Expand All @@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {


do {
items = try container.decode(ProductBulkRequest.self, forKey: .items)
items = try container.decode([ProductBulkRequest].self, forKey: .items)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/platform/PlatformAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class PlatformAPIClient {
if let token = token {
var finalHeaders = headers
finalHeaders.append((key: "Authorization", value: "Bearer " + token.accessToken))
finalHeaders.append((key: "x-fp-sdk-version", value: "1.3.5-beta.2"))
finalHeaders.append((key: "x-fp-sdk-version", value: "1.3.5-beta.1"))
finalHeaders.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
finalHeaders.append((key: "User-Agent", value: userAgent))
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/public/PublicAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PublicAPIClient {
responseType: String = "application/json",
onResponse: @escaping OnResponse) {
var headers = [
(key: "x-fp-sdk-version", value: "1.3.5-beta.2")
(key: "x-fp-sdk-version", value: "1.3.5-beta.1")
]
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
Expand Down
84 changes: 43 additions & 41 deletions documentation/platform/CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10904,46 +10904,48 @@ List of bulk product upload jobs. See `BulkRequestGetSchema` for details

```json
{
"items": {
"cancelled": 0,
"cancelled_records": [],
"company_id": 61,
"created_by": {
"full_name": "Anuja Yadav",
"user_id": "23218433",
"username": "yadavanuja039_gmail_com_82948"
},
"created_on": "2021-03-12T08:11:06.848000Z",
"failed": 0,
"failed_records": [],
"file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx",
"id": "604b221a73bfa20001cb00e8",
"is_active": true,
"modified_by": {
"user_id": "0",
"username": "Silverbolt"
},
"modified_on": "2021-03-12T08:11:08.646000Z",
"stage": "completed",
"succeed": 1,
"template": {
"banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg",
"departments": [
"men",
"women",
"kids",
"fashion"
],
"description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes",
"is_expirable": true,
"is_physical": true,
"logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg",
"name": "Footwear",
"slug": "footwear"
},
"template_tag": "footwear",
"total": 1
},
"items": [
{
"cancelled": 0,
"cancelled_records": [],
"company_id": 61,
"created_by": {
"full_name": "Anuja Yadav",
"user_id": "23218433",
"username": "yadavanuja039_gmail_com_82948"
},
"created_on": "2021-03-12T08:11:06.848000Z",
"failed": 0,
"failed_records": [],
"file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx",
"id": "604b221a73bfa20001cb00e8",
"is_active": true,
"modified_by": {
"user_id": "0",
"username": "Silverbolt"
},
"modified_on": "2021-03-12T08:11:08.646000Z",
"stage": "completed",
"succeed": 1,
"template": {
"banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg",
"departments": [
"men",
"women",
"kids",
"fashion"
],
"description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes",
"is_expirable": true,
"is_physical": true,
"logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg",
"name": "Footwear",
"slug": "footwear"
},
"template_tag": "footwear",
"total": 1
}
],
"page": {
"current": 1,
"has_next": true,
Expand Down Expand Up @@ -20038,7 +20040,7 @@ Returns a success response

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| items | [ProductBulkRequest](#ProductBulkRequest)? | yes | |
| items | [[ProductBulkRequest](#ProductBulkRequest)]? | yes | |
| page | [Page](#Page)? | yes | |

---
Expand Down

0 comments on commit 9dedd68

Please sign in to comment.