@sparkrewards/sra-sdk 0.0.6 → 0.0.8

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.
@@ -863,6 +863,12 @@ var ShopDetails;
863
863
  ]), new server_common_1.NoOpValidator());
864
864
  break;
865
865
  }
866
+ case "favorite": {
867
+ memberValidators["favorite"] = new server_common_1.CompositeValidator([
868
+ new server_common_1.RequiredValidator(),
869
+ ]);
870
+ break;
871
+ }
866
872
  }
867
873
  }
868
874
  return memberValidators[member];
@@ -887,6 +893,7 @@ var ShopDetails;
887
893
  ...getMemberValidator("sent_setup").validate(obj.sent_setup, `${path}/sent_setup`),
888
894
  ...getMemberValidator("setup").validate(obj.setup, `${path}/setup`),
889
895
  ...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
896
+ ...getMemberValidator("favorite").validate(obj.favorite, `${path}/favorite`),
890
897
  ];
891
898
  };
892
899
  })(ShopDetails = exports.ShopDetails || (exports.ShopDetails = {}));
@@ -1851,12 +1851,16 @@
1851
1851
  "items": {
1852
1852
  "type": "string"
1853
1853
  }
1854
+ },
1855
+ "favorite": {
1856
+ "type": "boolean"
1854
1857
  }
1855
1858
  },
1856
1859
  "required": [
1857
1860
  "active",
1858
1861
  "country_code",
1859
1862
  "description",
1863
+ "favorite",
1860
1864
  "id",
1861
1865
  "location",
1862
1866
  "logo",
@@ -1939,12 +1943,16 @@
1939
1943
  "items": {
1940
1944
  "type": "string"
1941
1945
  }
1946
+ },
1947
+ "favorite": {
1948
+ "type": "boolean"
1942
1949
  }
1943
1950
  },
1944
1951
  "required": [
1945
1952
  "active",
1946
1953
  "country_code",
1947
1954
  "description",
1955
+ "favorite",
1948
1956
  "id",
1949
1957
  "location",
1950
1958
  "logo",
@@ -1929,6 +1929,7 @@ const serializeGetShopResponse = async (input, ctx) => {
1929
1929
  'banner': [],
1930
1930
  'country_code': [],
1931
1931
  'description': [],
1932
+ 'favorite': [],
1932
1933
  'id': [],
1933
1934
  'latitude': _ => (0, smithy_client_1.serializeFloat)(_),
1934
1935
  'location': _ => se_LocationDetails(_, context),
@@ -1977,6 +1978,7 @@ const serializeGetShopPublicResponse = async (input, ctx) => {
1977
1978
  'banner': [],
1978
1979
  'country_code': [],
1979
1980
  'description': [],
1981
+ 'favorite': [],
1980
1982
  'id': [],
1981
1983
  'latitude': _ => (0, smithy_client_1.serializeFloat)(_),
1982
1984
  'location': _ => se_LocationDetails(_, context),
@@ -856,6 +856,12 @@ export var ShopDetails;
856
856
  ]), new __NoOpValidator());
857
857
  break;
858
858
  }
859
+ case "favorite": {
860
+ memberValidators["favorite"] = new __CompositeValidator([
861
+ new __RequiredValidator(),
862
+ ]);
863
+ break;
864
+ }
859
865
  }
860
866
  }
861
867
  return memberValidators[member];
@@ -880,6 +886,7 @@ export var ShopDetails;
880
886
  ...getMemberValidator("sent_setup").validate(obj.sent_setup, `${path}/sent_setup`),
881
887
  ...getMemberValidator("setup").validate(obj.setup, `${path}/setup`),
882
888
  ...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
889
+ ...getMemberValidator("favorite").validate(obj.favorite, `${path}/favorite`),
883
890
  ];
884
891
  };
885
892
  })(ShopDetails || (ShopDetails = {}));
@@ -1851,12 +1851,16 @@
1851
1851
  "items": {
1852
1852
  "type": "string"
1853
1853
  }
1854
+ },
1855
+ "favorite": {
1856
+ "type": "boolean"
1854
1857
  }
1855
1858
  },
1856
1859
  "required": [
1857
1860
  "active",
1858
1861
  "country_code",
1859
1862
  "description",
1863
+ "favorite",
1860
1864
  "id",
1861
1865
  "location",
1862
1866
  "logo",
@@ -1939,12 +1943,16 @@
1939
1943
  "items": {
1940
1944
  "type": "string"
1941
1945
  }
1946
+ },
1947
+ "favorite": {
1948
+ "type": "boolean"
1942
1949
  }
1943
1950
  },
1944
1951
  "required": [
1945
1952
  "active",
1946
1953
  "country_code",
1947
1954
  "description",
1955
+ "favorite",
1948
1956
  "id",
1949
1957
  "location",
1950
1958
  "logo",
@@ -1896,6 +1896,7 @@ export const serializeGetShopResponse = async (input, ctx) => {
1896
1896
  'banner': [],
1897
1897
  'country_code': [],
1898
1898
  'description': [],
1899
+ 'favorite': [],
1899
1900
  'id': [],
1900
1901
  'latitude': _ => __serializeFloat(_),
1901
1902
  'location': _ => se_LocationDetails(_, context),
@@ -1943,6 +1944,7 @@ export const serializeGetShopPublicResponse = async (input, ctx) => {
1943
1944
  'banner': [],
1944
1945
  'country_code': [],
1945
1946
  'description': [],
1947
+ 'favorite': [],
1946
1948
  'id': [],
1947
1949
  'latitude': _ => __serializeFloat(_),
1948
1950
  'location': _ => se_LocationDetails(_, context),
@@ -359,6 +359,7 @@ export interface ShopDetails {
359
359
  sent_setup?: boolean;
360
360
  setup: boolean | undefined;
361
361
  tags: (string)[] | undefined;
362
+ favorite: boolean | undefined;
362
363
  }
363
364
  export declare namespace ShopDetails {
364
365
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sparkrewards/sra-sdk",
3
3
  "description": "@sparkrewards/sra-sdk server",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",