Skip to content

Commit

Permalink
Revert "Updated this branch by pulling changes from master branch"
Browse files Browse the repository at this point in the history
This reverts commit c0cfcc6.
  • Loading branch information
harshithad0703 committed Jan 22, 2024
1 parent 9aa21a2 commit 4564971
Show file tree
Hide file tree
Showing 27 changed files with 18,828 additions and 4,764 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci/Users/harshitha.d/Documents/sdk-contentstack/contentstack-javascript/webpack
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@contentstack'
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --fail-on=all
args: --all-projects --fail-on=all
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
## Change log

### Version: 3.18.0
#### Date: January-15-2024
##### New Features:
- added taxonomy support
- X-User-Agent updated
- added region gcp_na
### Version: 3.17.2
#### Date: November-15-2023
##### Bug fix:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)


Copyright (c) 2016-2024 Contentstack
Copyright (c) 2016-2023 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ You can use advanced sync queries to fetch custom results while performing initi

### The MIT License (MIT)

Copyright © 2012-2024 [Contentstack](https://www.contentstack.com). All Rights Reserved
Copyright © 2012-2021 [Contentstack](https://www.contentstack.com). All Rights Reserved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
3 changes: 1 addition & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const config = {
content_types: "/content_types/",
entries: "/entries/",
assets: "/assets/",
environments: "/environments/",
taxonomies: "/taxonomies/entries"
environments: "/environments/"
},
live_preview: {
enable: false,
Expand Down
16 changes: 2 additions & 14 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export enum Region {
US = "us",
EU = "eu",
AZURE_NA = "azure-na",
AZURE_EU = "azure-eu",
GCP_NA = "gcp-na",
AZURE_EU = "azure-eu"
}

//Enum for Contentstack CachePolicy
Expand Down Expand Up @@ -137,7 +136,6 @@ export class Stack {
ContentType(uid: string): ContentType;
Assets(uid: string): Asset;
Assets(): Assets;
Taxonomies(): Taxonomies;

setPort(port: number): Stack;
setProtocol(protocol: string): Stack;
Expand Down Expand Up @@ -165,13 +163,11 @@ export class ContentType {
constructor();
content_type_uid: string

Query(): Taxonomy;
Query(): Query;
Entry(uid: string): Entry;
fetch(fetchOptions?: object): Promise<any>;
}

export class Taxonomies extends Taxonomy {}

export class Assets {
constructor();

Expand Down Expand Up @@ -292,11 +288,3 @@ export class Query extends Entry {
find(fetchOptions?: object): Promise<any>;
findOne(): Promise<any>;
}

export class Taxonomy extends Query {
constructor();
above(key: string, value: string, levels?: number): Query;
equalAndAbove(key: string, value: string, levels?: number): Query;
below(key: string, value: string, levels?: number): Query;
equalAndBelow(key: string, value: string, levels?: number): Query;
}
Loading

0 comments on commit 4564971

Please sign in to comment.